+1

#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

+5

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

+3

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