Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions