Answered step by step
Verified Expert Solution
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.
- 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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started