(Choose 1 answer)
Consider the sample code below:
#include <stdio.h>
void inputInt(int N){
printf("Enter an integer:");
scanf("%d", &N);
int main(){int n = 10;
inputInt(n);
printf("n=%d",n);
return 0;
}
Which of the following statements is true when the above code is executed?
A. There is a compiler error because the name of the argument of the function inputInt is not match.
B. The program always displays: n=10
C. The value of n after calling inputint depends on the value entered from the keyboard.
D. A compile error occurs because the program requires the declaration of the function inputInt.
Exit 48