Question: When i compile this code, I get soft errors with the int and char pointers, i want to understand why and how i can correct
When i compile this code, I get soft errors with the int and char pointers, i want to understand why and how i can correct it I try to compile the code in my gcc terminal and it errors out,
#include
#include
int mainvoid
Part
unsigned int x;
unsigned int px &x;
Part
int py intmallocsizeofint;
Part
printfEnter the unsigned int xaabbccdd in hexadecimal form : ;
scanfx&x;
Part
printfEnter the int x in hexadecimal form : ;
scanfx&py;
Part
unsigned char pc;
int i;
Part
printfValue in x : x
x;
printfAddress in px : p
px;
printfValue in py : x
py;
printfAddress in py : p
py;
Part
pc unsigned int&x;
fori;i;i
printfValue of pc : p
pc;
printfValue of pc : x
pc;
pc;
Part
pc &px;
fori;i;i
printfValue of pc d : p
ipci;
printfValue of pcd : x
ipci;
Part
pc int&py;
fori;i;i
printfValue of pc : p
pc;
printfValue of pc : x
pc;
pc;
pc &py;
fori;i;i
printfValue of pc d : p
ipci;
printfValue of pcd : x
ipci;
Part
freepy;
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
