in main function at 1;06;00 the main should return 32 na, coz
of ur 64 bit computer???
Pointers and arrays
Hello @Jun18APP0112,
Nope, it won’t be 32 for any compiler.
The output 16 bytes shown in the video is itself for 64 bit compiler.
Let’s understand this.
In the main function, the following statement will print the size occupied by the entire array.
cout<<sizeof(a);
As, the memory required by int is 4 bytes and there are 4 cells (size of array) in the array. So,
4*4= 16 bytes.
Hope, this would help.
Give a like, if you are satisfied.