HOD401_-_FA_2023_-_FE_1025.webp
Kokushibo91

HOD401_-_FA_2023_-_FE_1025.webp

(45)Answer
(Choose 1 answer)
#include <stdio.h>
Bob is new to C and she stills trying to grasp the concept of pointers. What is the output of below code:
void swap(int *a, int *b){
*a=*a^*b;*b=*a*b;
*a=*a*b;
}
int main()
int x = 5, y = 10;int *a = &x, *b = &y;
swap(a, b);
printf("%d %d", *a, *b);}
A. 5 10
B. 105
C. 55
D. 10 10
E. Can not compile


Thông tin

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

Image metadata

Filename
HOD401_-_FA_2023_-_FE_1025.webp
File size
49.7 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom