Int data type pointer
#include <stdio.h>
main () {
int i;
int * ia;
i = 10;
ia = &i;
printf ("The address of i is %8u \n", ia);
printf ("its value is %d\n", i);
printf ("its value is %d\n", *ia);
*ia = 50;
printf ("the value of i is %d\n", i);
}
Related examples in the same category