October 16, 2015

Double Pointers in C Language

#include<stdio.h>

int main()
{
int num = 45 , *ptr , **ptr2ptr ;
ptr     = &num;
ptr2ptr = &ptr;

printf("%d",**ptr2ptr);

return(0);
}
 
 
Output 
 
45 

No comments:

Post a Comment