C Language - Pointers

 



#include <stdio.h>

#include <conio.h>

int main()

{

int a = 100;

int *ptr = &a;

int *ptr2 = NULL;

printf ("The value of a is %d \n", a);

printf ("The value of a is %d \n", *ptr);

printf ("The address of a %x \n", a);

printf ("The address of Pointer is %x \n", &*ptr);

}


// ScreenShots:




Comments

Popular Posts