More Pointer Types
Explore different types of pointers in this lesson
We'll cover the following...
Example program
To understand the different types of pointers, see the code given below!
Press + to interact
C
# include <stdio.h>int main( ){// Initializes variable iint i = 10;// Initializes pointer variablesint *j , **k , ***l, ****m;// Stores address of i in jj = &i ;// Stores address of pointer j in kk = &j;// Stores address of pointer to a pointer (k) in ll = &k;// Stores address of pointer to a pointer to a pointer (l) in mm = &l;return 0 ;}
Explanation
Line 7: j, k, l, and m ...
Ask