Vidyalelo
Computer Science · Q539

Linux

Engineering and GATE · Computer Science · question 539

Q539

What is the output of this program? #include #include struct st int a; char b; ; int main() struct st *st_ptr; st_ptr = malloc(sizeof(struct st)); printf("%d ",sizeof(struct st)); return 0;

A.
8
Answer
B.
5
C.
0
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board