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.

  1. declare three integer variables a, b, c
  2. declare three integer pointer variables pa, pb, pc
  3. assign 12 to variable a, 9 to variable b
  4. assign the address of variable a to variable pa
  5. assign pa to pb
  6. assign pa to pc
  7. print out the values pointed by pa, pb, pc (dereferencing it)
  8. assign the address of variable b to pa
  9. print out the values pointed by pa, pb, pc (dereferencing it)
  10. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!