C Programming MCQ

1:

Consider the program
main( )

    int y = 1;
    printf ("%d", (*(char *)&x)) :
}

If the machine in which this program is executed is little-endian (meaning, the lower signifi-cant digits occupy lower addresses), then the output will he

A.

0

B.

99999999

C.

1

D.

unpredictable

 

Answer : C

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.