#include #include #define MAXVALS 4 void arrayVals(int iN, int* arr, int val); int main(void){ int iErr; int iVal; int a[MAXVALS]; char* prompt = "value: "; printf("%s",prompt); iErr = scanf("%d", &iVal); if(iErr != 1){ fprintf(stderr, "Unable to read value\n"); return EXIT_FAILURE; } arrayVals(MAXVALS, a, iVal); printf("-------------------------------------------\n"); printf("main prompt (char*):\t%p\n", &prompt); printf("main a (int[MAXVALS]):\t%p\n", a); printf("main iVal (int):\t%p\n", &iVal); printf("main iErr (int):\t%p\n", &iErr); for(int i=0; i