what is the the output and how the code snippet works? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 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 Resposta
+ 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