+ 1

How many pointer of pointer we can use

24th Dec 2016, 9:00 AM
Riyaz Sheikh
Riyaz Sheikh - avatar
4 ответов
+ 2
Max 12
24th Dec 2016, 9:50 AM
Riyaz Sheikh
Riyaz Sheikh - avatar
+ 1
as per ur requirement....it depends on how many variables addresses u assigned to pointer for example.... #include <stdio.h> int main () { int var; int *ptr; int **pptr; var = 3000; /* take the address of var */ ptr = &var; /* take the address of ptr using address of operator & */ pptr = &ptr; /* take the value using pptr */ printf("Value of var = %d\n", var ); printf("Value available at *ptr = %d\n", *ptr ); printf("Value available at **pptr = %d\n", **pptr); return 0; }
24th Dec 2016, 9:38 AM
Sumit Urkude
Sumit Urkude - avatar
+ 1
why 12...?
24th Dec 2016, 11:51 AM
Sumit Urkude
Sumit Urkude - avatar
+ 1
There is limit for point the var address
24th Dec 2016, 12:00 PM
Riyaz Sheikh
Riyaz Sheikh - avatar