Question: Understand the pointer in C Understand how to create a C program, compile and execute it. declare three integer variables a, b, c declare three
Understand the pointer in C Understand how to create a C program, compile and execute it.
- declare three integer variables a, b, c
- declare three integer pointer variables pa, pb, pc
- assign 12 to variable a, 9 to variable b
- assign the address of variable a to variable pa
- assign pa to pb
- assign pa to pc
- print out the values pointed by pa, pb, pc (dereferencing it)
- assign the address of variable b to pa
- print out the values pointed by pa, pb, pc (dereferencing it)
- print out the values of pa, pb, pc
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
