pointer to pointer or pointer of pointer

A pointer variable which stores memory address of other pointer variable of same type is called pointer to pointer.
एक पॉइंटर वेरिएबल जो उसी प्रकार के किसी अन्य पॉइंटर वेरिएबल का मेमोरी एड्रेस रखता है पॉइंटर टू पॉइंटर कहलाता है। 

Syntax :- data _ type *pointer_ name, **pointer_to_pointer_name,***pointer_to_pointer_name;

Example :- int *p,**q,***r;

'C' program for pointer to pointer :-
#include <stdio.h>
#include <conio.h>
void main (){
int a=12, *p, **q, ***r;
clrscr();
printf("a=%d\n",a);
p=&a;
printf("a=%d\n",*p);
q=&p;
printf ("a=%d\n",**q);
r=&q;
printf("a=%d\n",***r);
getch();
}

Comments

Popular posts from this blog

C Language Topics in Hindi and English

Top High-Paying Tech Skills to Learn in 2025

C language IMP Questions for BSc/BA/BCom/BCA/BE/BTech/MSc/MCA (CS/IT) I year students