Assume that the size of an integer is 4 bytes. What is the output of the…
Assume that the size of an integer is 4 bytes. What is the output of the following C program?
#include <stdio.h>
struct data
{
int p;
static int q;
};
void main()
{
printf("%d", sizeof(struct data));
}
- A.
Compile error
- B.
8
- C.
Run time error
- D.
1
Attempted by 527 students.
Sign up free to check your answer
Sign up freeLoading lesson…

