408 views
0 0 votes
How does the array related expression in printf works

#include <stdio.h>

int main(void) {
	// your code goes here
	int a[3][4] = {
	    1,2,3,4,5,6,7,8,9,10,11,12
	};
	
	printf("%u",*(*(a+0)+1));
	
	return 0;
}

Please log in or register to answer this question.

Position:
Show:

Related questions

7 7 votes
2 2 answers
326
326 views
GO Classes asked Jun 23
326 views
What is the output of the following code?#include <stdio.h int main() { int a[] = {5, 10, 15, 20}; int *p = a + 1; printf("%d %d %td", *(p + 1), p , (p + 2) - a); return ...
7 7 votes
2 2 answers
360
360 views
GO Classes asked Jun 22
360 views
What is the output of the following code?#include <stdio.h int main() { int a[] = {2, 4, 6, 8, 10}; printf("%d %d %d", *a, *(a + 3), 3[a]); return 0; }$\texttt{2 6 8}$ $\...
0 0 votes
1 1 answer
649
649 views
CJ147 asked Oct 13, 2018
649 views
How does the following expression evaluate to if suppose n=2n=2; a[++n]=n++;
0 0 votes
0 0 answers
380
380 views
CJ147 asked Oct 13, 2018
380 views
How does the following expression evaluate to if suppose n=2a[++n]=n++;