Question: C language module c-1 (1.17/1.18) copy the program and then the output for both parts endian is the code I put above int main O
C language
module c-1 (1.17/1.18)
copy the program and then the output for both parts


endian is the code I put above
int main O int i - 5; char *charPtr; IT Pointer declaration int j; //Make the char pointer point to the start of the integer: charPtr-(char*) (& i); j (int) *charPtr; printf ("First byte: Kd at address %p ", j, (charPtr)); j- (int) *(charPtr+1); printf ("Second byte: %d at address %pNn", j, (charPtr+1)); j -(int) *(charPtr+2); printf ("Third byte: %d at address %pNn", j, (charPt r+2)); j -Cint) *CcharPtr+3); printf ("Fourth byte: %d at address %p ", j, (charPtr+3)); Exercise 1.17 (Bonus): Implement the above program in endian.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
