What is the output of the following C program?
#include <stdio.h>
void add_one(int n) {
n++;
}
int main(void) {
int x = 5;
add_one(x);
printf("%d\n", x);
return 0;
}
add_one() increments its own copy n; x in main() is untouched. Compilers even warn that n is set but never used.