Mega Code Archive

 
Categories / C / Code Snippets
 

Int data type pointer

#include <stdio.h> main () { int j; int * ja; j = 10; ja = &j; printf ("The address of j is %8u \n", ja); printf ("its value is %d\n", j); printf ("its value is %d\n", *ja); *ja = 50; printf ("the value of j is %d\n", j); }