C Programming :: Functions - Discussion
Home > C Programming > Functions > MCQs Questions Discussion
41 / 53
What will be output of the following "c" code?
int main ()
{
int i = 2, j = 3, k = 1;
swap (i, j);
printf ("%d %d", i, j);
}
swap (int i, int j)
{
int temp;
temp = i; i = j; j = temp;
}
int main ()
{
int i = 2, j = 3, k = 1;
swap (i, j);
printf ("%d %d", i, j);
}
swap (int i, int j)
{
int temp;
temp = i; i = j; j = temp;
}
A2 3
B3 2
C2 1
DCompilation Error
ENone
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!