Question: Practice Pointers Complete the following diagrams and code so that they all correspond to each other: void someFunction ( ) { int i = int
Practice Pointers
Complete the following diagrams and code
so that they all correspond to each other:
void someFunction
int i
int j ;
int p &
int p; at addr xFCEC
What is ps value?
Write the code to display ps pointees value.
Write the code to display ps value.
Is it useful to know a pointers exact value?
What is ps value?
Basic Diag:
i
p
j
p
Write the code to initialize p so that it points to nothing.
What happens if the code below executes when p is NULL?
printfi
p;
Linear Diag:
xFCF
xFCF
What happens if the code below executes when p is uninitialized?
printfi
p;
Write the code to make p point to i
How many pointer variables are declared in the code below?
void someFunction
int p p;
What does the code below do
int q &p;
C
FC
F
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
