1,313 views
0 votes
0 votes
Main(){

Int a[3][4]={(1,2,3,4),(5,6,7,8),(9,10,11,12)}

Print("\n%u%u%u",a[0]+1,*(a[0]+1),*(*(a+0)+1)));

}

What will be the output if base address is 10.

2 Answers

Best answer
3 votes
3 votes
  • a+1 ---> skeeping one row

  • *a+1 ----> skeeping one element.

selected by

Related questions

0 votes
0 votes
3 answers
2
hrcule asked Jul 20, 2018
613 views
Int A[3]={0,1,2}A++; For this code snippet un C will there be a compilation error,if yes then please explain a bit.
4 votes
4 votes
1 answer
3
0 votes
0 votes
2 answers
4
vishalmessi asked Dec 11, 2016
4,106 views
#include <stdio.h int main() { int a[][3] = {1, 2, 3, 4, 5, 6}; int (*ptr)[3] = a; printf("%d %d ", (*ptr) , (*ptr) ); ++ptr; printf("%d %d\n", (*ptr) , (*ptr) ); return ...