Sail E0 Webinar
Question
What is the output of this C code?
int main()
{
int y = 1, x = 0;
int l = (y++, x++) ? y : x;
printf("%d\n", l);
}
Options:
A .  1
B .  2
C .  Compile time error
D .  Undefined behaviour
Answer: Option A


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers