Question: Where did I mess up the code? (See pictures for my code build and ran) ORIGINAL INSTRUCTIONS : Modify the program to cast vptr as
Where did I mess up the code? (See pictures for my code build and ran)
ORIGINAL INSTRUCTIONS:
Modify the program to cast vptr as a float and as a double.
Build and run your program.
THIS IS THE PROGRAM CODE:
#include
int main (void)
{
int intval = 255958283;
void *vptr = &intval;
printf ("The value at vptr as an int is %d ", *((int *) vptr));
printf ("The value at vptr as a char is %d ", *((char *) vptr));
}
MY PROGRAM:

T! pointer2.c- /home/pi - Geany File Edit Search View Document Project Build Tools Help x6 = Symbols > pointer2.c x Functions #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
