adplus-dvertising
frame-decoration

Question

What will be the output of the program in 16 bit platform ?
#include <stdio.h>
int main()
{
    extern int i;
    i = 20;
    printf("%d", sizeof(i));
    return 0;
}

a.

2

b.

4

c.

8

d.

Linker Error

Answer: (d).Linker Error

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the program in 16 bit platform ?