what is the the output and how the code snippet works? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
1 Answer
+ 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