If the size of an integer is 8 bytes, and an address (pointer) needs 4 bytes, what will be the output of the program?
#include<stdio.h>
int main()
{
int arr[] = {12, 13, 14, 15, 16};
printf("%d, %d, %d\n", sizeof(arr), sizeof(*arr), sizeof(arr[0]));
return 0;
}
| A |
20, 4, 4 |
|
| B |
40, 4, 8 |
|
| C |
20, 2, 4 |
|
| D |
4, 4, 4 |
If the size of an integer is 8 bytes, and an address (pointer) needs 4 bytes,...