What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes? Why it prints 65496 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes? Why it prints 65496

#include<stdio.h> int main() { int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0}; printf("%u\n", &a+1); return 0; }

31st Jul 2019, 4:01 PM
Shaik Abeedh
Shaik Abeedh - avatar
1 Answer
+ 1
To be honest if want to understand this I really want you to watch these videos And you'll be completely filled with the knowledge of 2d arrays and pointers Here's the link:- https://www.youtube.com/playlist?list=PL2_aWCzGMAwLZp6LMUKI3cc7pgGsasm2_
11th Aug 2019, 7:28 AM
Zuhail
Zuhail - avatar