331 views

1 Answer

0 votes
0 votes
When you do int a=(2,3) => a=(3) => a=3

 comma evaluated first as it is in bracket which is 3 and then it is assigned to variable a

So 3+4 = 7 will be output
edited by

Related questions

7 votes
7 votes
3 answers
1
Parshu gate asked Nov 20, 2017
741 views
What is the output of the following program?#include<stdio.h int main() { int array[]={10, 20, 30, 40}; printf(“%d”, -2[array]); return 0; }$-60$$-30$$60$Garbage valu...
0 votes
0 votes
0 answers
2
iarnav asked Jul 30, 2018
375 views
for every j != i in {0,....,n-1} is it like for j=0 to n-1; j !=i ; ++j
3 votes
3 votes
1 answer
3
Parshu gate asked Nov 13, 2017
1,380 views
main( ){int n[3][3] = {2, 4, 3,6, 8, 5,3, 5, 1} ;printf ( "\n%d %d %d", *n, n[3][3], n ) ;}
1 votes
1 votes
4 answers
4
Jonathan Decosta asked Jul 6, 2015
599 views
int main() { int i = 255; char *p; p = &i; printf("%d", *p); return 0; }