বৃহস্পতিবার, ২৬ সেপ্টেম্বর, ২০১৩

**p


pointer to pointer in c

**p


#include <stdio.h>
#include<conio.h>
void main ()
{
int p, *fpointer, **spointer;
clrscr();

p = 1000;
fpointer = &p; // fpointer puts the address of p.
spointer = &fpointer; // spointer puts the address of fpointer.

printf(“Value of p : %d”, p);
printf(“\n”);
printf("Value of *fpointer : %d" *fpointer”);
printf(“\n”);
printf(“"Value of **spointer : %d" **spointer);
getch();
}
The result is:
Value of p :1000
Value of *fpointer :1000
Value of **spointer :1000