#include<stdio.h>
main()
{
int y=1;
printf("%d", (*(char*)&y));
}
a) 1
b) 1000
c) 9999
d) 0
If the code shown below is executed on a little endian machine, then what will be the output of the following C code?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
If the code shown below is executed on a little endian machine, then what will be the output of the following C code?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!