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));
}

  1. A.

    Compile error

  2. B.

    8

  3. C.

    Run time error

  4. D.

    1

Attempted by 527 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…