1#include <stdio.h>
2#include <stdlib.h>
3
4void pointerFuncA(int* iptr){
5/*Print the value pointed to by iptr*/
6printf("Value: %d\n", *iptr );
7
8/*Print the address pointed to by iptr*/
9printf("Value: %p\n", iptr );
10
11/*Print the address of iptr itself*/
12printf("Value: %p\n", &iptr );
13}
14
15int main(){
16int i = 1234; //Create a variable to get the address of
17int* foo = &i; //Get the address of the variable named i and pass it to the integer pointer named foo
18pointerFuncA(foo); //Pass foo to the function. See I removed void here because we are not declaring a function, but calling it.
19
20return 0;
21}