Examveda
Examveda

What will be the output of the following C code, if it is run on a 32 bit platform?
#include<stdio.h>
#pragma(1)
struct test
{
    int i;
    char j;
};
main()
{
    printf("%d",sizeof(struct test));
}

A. Error

B. 1

C. 4

D. 8

Answer: Option D


This Question Belongs to C Program >> C Preprocessor

Join The Discussion

Related Questions on C Preprocessor