PRF192_-_FEB5_-_FA_2023_1298.webp
G

PRF192_-_FEB5_-_FA_2023_1298.webp

(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

Thông tin

Category
PRF192
Thêm bởi
great_sun
Ngày thêm
Lượt xem
2,321
Lượt bình luận
13
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_FEB5_-_FA_2023_1298.webp
File size
60.9 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom