PRF192_-_SP_2025_-_Block_5_-_1_3841.webp
T

PRF192_-_SP_2025_-_Block_5_-_1_3841.webp

Kizspy Question: 39
(Choose 1 answer)
PUJVERA,AM com
What does the following code print?
#include <stdio.h>
void swap(int a, int *b) {
int temp = a;
a = *b;
*b= temp;
int main() {
int x = 5:
int y = 10;
swap(x, y);
printf("x = %d, y = %d\n", x, y);
return 0;
A. Runtime error.
B. Compiler error.
C. x = 5, y = 10
D. x = 10, y = 5
E. x = 10, y = 10
F. x = 5, y = 5

Thông tin

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

Share this media

Back
Bên trên Bottom