Skip to content

Commit

Permalink
added uninon
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaanilkumar committed Jun 29, 2020
1 parent b52b74e commit 359300b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions C/double_pointer.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//double pointer example

#include<stdio.h>

void main()
{
int x, *p1, **p2;
x = 100;
p1 = &x; /* address of x */
p2 = &p1; /* address of p1 */
printf("p1 contains adress of x which is : %u\n",p1);
printf("Address of p1 is : %u\n",&p1);
printf("p2 contains adress of p1 which is : %u\n",p2);

printf("Value of x is %d",**p2);
}

0 comments on commit 359300b

Please sign in to comment.