closed by
261 views
0 votes
0 votes
closed as a duplicate of: Multidimensional Pointer Arithmetic

#include<stdio.h>

int main()

{

char A[5][7][6];

char *p[5][7][6];

printf("%d\t", (unsigned)(A+1)-(unsigned)A);

printf("%d", (unsigned)(p+1)-(unsigned)p);

}

  1. 42  42
  2. 1  1
  3. 42  336
  4. 336  42
closed by

Related questions

0 votes
0 votes
1 answer
2
its_vaibhav asked Jan 13, 2022
281 views
What is the output of the following c-code ? A.It prints the APPLIED B.It prints the DEILPPA C.It prints nothing D.None of the above
0 votes
0 votes
1 answer
3
its_vaibhav asked Jan 12, 2022
594 views
applied gate test seriesWhat is the output of the following c-code[ Note: Assume integer as 2 bytes] ?#include<stdio.h>int main(){ int x = 500;char *p=&x;*++p=2;printf(�...
4 votes
4 votes
1 answer
4
ramakrushna asked Dec 31, 2021
1,336 views
The number of insertion sequences of the numbers {1,2,3,4,5,6,7} which would lead to the following BSTHow to tackle this kind of problem. Anyone!