C Programming :: C Preprocessor - Discussion
Home > C Programming > C Preprocessor > MCQs Questions Discussion
13 / 34
What will be output of the following "c" code?
#include <stdio.h>
#define swap(a,b,c) c = a; a = b; b = c
int main()
{
int a = 3,b = 5;
int temp;
swap(a,b,temp);
printf("%d %d %d\n",a,b,temp);
}
#include <stdio.h>
#define swap(a,b,c) c = a; a = b; b = c
int main()
{
int a = 3,b = 5;
int temp;
swap(a,b,temp);
printf("%d %d %d\n",a,b,temp);
}
A3 5 3
B3 3 5
C5 3 3
DCompilation Error
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!