Examveda
Examveda

If the code shown below is executed on a little endian machine, then what will be the output of the following C code?
#include<stdio.h>
main()
{
    int y=1;
    printf("%d", (*(char*)&y));
}

A. 1

B. 1000

C. 9999

D. 0

Answer: Option A


This Question Belongs to C Program >> C Miscellaneous

Join The Discussion

Related Questions on C Miscellaneous