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
# include <stdio.h>
int main( )
{
// Initializes variable i
int i = 10;
// Initializes pointer variables
int *j , **k , ***l, ****m;
// Stores address of i in j
j = &i ;
// Stores address of pointer j in k
k = &j;
// Stores address of pointer to a pointer (k) in l
l = &k;
// Stores address of pointer to a pointer to a pointer (l) in m
m = &l;
return 0 ;
}

Explanation

Line 7: j, k, ...

Access this course and 1400+ top-rated courses and projects.