PRF192_-_REB5_-_FA_2023_1327.webp
Naoya92

PRF192_-_REB5_-_FA_2023_1327.webp

  • Media owner Naoya92
  • Ngày thêm
(Choose 1 answer)
Consider the following code (suppose that line numbers are not included and all necessary libraries are included):
1.int smaller(int x, int y){
2. if(x<=y)
3. return(x);
4. else
5. return(*(&y));
6. }
7.int main(){
8. int i,n,x,y, min;
9. printf("How many pairs of numbers?");
10. scanf("%d", &n);
11. for(i=1, i<=n, i++) {
12.printf("Enter the pair of numbers:");
13.scanf("%d%f", &x,&y);
14.min=small(x,y);
15. printf(" Smaller: %f",min);
16. }
17. return 0;
18.}
On compiling the above code, an error is displayed on which line first?
A. 5
B. 11
C. 13
D14

Exit 28

Thông tin

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

Image metadata

Filename
PRF192_-_REB5_-_FA_2023_1327.webp
File size
58.6 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom