Wondering if anyone can help explain why, in the following code, passing a unary operator on a variable changes the initialized val of variable in main(), but passing arithmetic operator does not?
void displayParam(int a)
printf("\nInt variable a: %d\n", a);
int a = 0;
printf("val of a in main (unchanged from initialization) is %d\n",a); //a still = 0:
printf("val of a in main (now changed from initialization val) is %d\n",a); //a now = 1