+ 1

what is the the output and how the code snippet works?

i=(2,3,4); printf("%d",i);

4th Feb 2020, 11:50 AM
Chinnmay B S
Chinnmay B S - avatar
2 Answers
+ 2
You can assign a variable with only one value. If there is more than one value last is used, I.e. 4. So output is 4.
4th Feb 2020, 11:53 AM
Stephan
Stephan - avatar