CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
3
You visited us 3 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following C code:
void main ( )
{
int x = 1, y = 2, z = 3;
x = (y ++, z++);
y = (x++, z++);
z = (x++, y++);
printf(" %d, %d, %d", x,y,z);
}

What is the output produced by above code?

A
3, 4, 5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
4, 5, 5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
4, 5, 3
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
5, 5 ,4
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Join BYJU'S Learning Program
CrossIcon