#include<stdio.h> void main() { int a; a=(1,2,3); printf("%d",a); }

the output is 3. can anyone tell me that why the last value of parenthesis is assigned to a ?

2/2/2020 5:12:41 PM

Amit Kumar

2 Answers

New Answer


Values in parentheses take tha last one value, (5,72,88,0,6,5)=5


Why don't you try it in sololearn's awesome IDE?