adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>         
struct student
{
  char *c;
};
void main()
{
  struct student s[2];
  printf("%d", sizeof(s));
}

a.

2

b.

4

c.

16

d.

8

Posted under C Programming

Answer: (d).8

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?