Show how pointers can be used
#include <stdio.h>
int main()
{
int integerVariable;
int *integerPointer;
integerVariable = 2;
printf("Thing %d\n", integerVariable);
integerPointer = &integerVariable;
*integerPointer = 3;
printf("Thing %d\n", integerVariable);
printf("Thing %d\n", *integerPointer);
return (0);
}
Related examples in the same category