C Programming :: Bitwise Operators - Discussion
Home > C Programming > Bitwise Operators > MCQs Questions Discussion
11 / 34
What will be output of the following "c" code?
void main()
{
void swap();
int x=10,y=8;
swap(&x,&y);
printf("x=%d y=%d",x,y);
}
void swap(int *a, int *b)
{
*a ^= *b;
*b ^= *a;
*a ^= *b;
}
Ax=8 y=10
Bx=10 y=8
CCompilation Error
DNone of these
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!