retagged by
524 views

1 Answer

Best answer
5 votes
5 votes
Comma operator is at work here. For "," operator, given as

expr1,expr2

expr1 is evaulated, then expr2 and value of expr2 is returned as the value of comma operation. So, here we have 2 comma operator and the value returned will be that of the last expression which is 10.
selected by

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
0 answers
3
srestha asked Mar 5, 2019
1,148 views
What will be output of the program?int d=0; int f(int a,int b){ int c; d++; if(b==3) return a*a*a; else{ c=f(a,b/3); return(c*c*c); } } int main(){ printf("%d",f(4,81)); ...
1 votes
1 votes
0 answers
4
Mahbub Alam asked Nov 15, 2018
554 views
what is the result of comparing signed with unsigned number??#include <stdio.h>int main(){ unsigned int a = 5;if(a -1)printf("5 is -1\n"); return 0; }