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