Question: / * * An exercise to help you understand the use of pointer variables. * / #include int main ( void ) { int foo;
An exercise to help you understand the use of pointer variables.
#include
int mainvoid
int foo;
int bar;
int fred;
int sam;
bar ;
foo ;
fred &foo;
point one
printfpoint one: foo is d and bar is d
foo, bar;
sam &bar;
sam ;
fred ;
point two
printfpoint two: foo is d and bar is d
foo, bar;
fred &bar;
fred ;
point three
printfpoint three: foo is d and bar is d
foo, bar;
printfpoint three: fred is d and sam is d
fredsam;
sam &foo;
sam fred;
point four
printfpoint four: foo is d and bar is d
foo, bar;
sam ;
sam fred;
point five
printfpoint five: foo is d and bar is d
foo, bar;
printfpoint five: fred is d and sam is d
fredsam;
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
