1,355 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

463
views
0 answers
0 votes
Lakshman Bhaiya asked Oct 22, 2018
463 views
Let arr[] be an array containing n integers. The following algorithm computes the frequency of each element in arr and stores it in another array fre[].for(i=0;i<n;i++) { count=1; for ... $D) arr[i]==arr[j]$
663
views
3 answers
0 votes
hrcule asked Jul 20, 2018
663 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.
1.3k
views
1 answers
4 votes
kd..... asked Apr 25, 2018
1,285 views
Why is it illegal initialization?#include<stdio.h> #include<string.h> main() { char *s[]={"Lakshya","cquest","brainq","cidol"}; char **ss[]={(s+3),(s+2),(s+1),(s+0)}; char ... *++sss); printf("%s",*--*++sss+3); printf("%s",sss[-1][-1]+1); }
4.2k
views
2 answers
0 votes
vishalmessi asked Dec 11, 2016
4,223 views
#include <stdio.h> int main() { int a[][3] = {1, 2, 3, 4, 5, 6}; int (*ptr)[3] = a; printf("%d %d ", (*ptr)[1], (*ptr)[2]); ++ptr; printf("%d %d\n", (*ptr)[1], (*ptr)[2]); return 0; }(a) 2 3 5 6 (b) 2 3 4 5(c) 4 5 0 0 (d) none of the above