3,096 views
0 votes
0 votes
main() {

int a,b,c,d;

a=3,b=5;

c=a,b;

d=(a,b);

printf("%d %d",c,d);

}

Output???

1 Answer

0 votes
0 votes

here a=3,b=5

c=a,b  //a will be assigned to c so c=3

d=(a,b) // here parameter will pass right to left and b will be passed to d so d=5

output is 3,5

Related questions

1.3k
views
2 answers
1 votes
vaishali jhalani asked Nov 9, 2016
1,323 views
#include <stdio.h>char *fun(){ static char arr[1024]; return arr;} int main(){ char *str = "geeksforgeeks"; strcpy(fun(), str); str = fun(); strcpy(str,...
475
views
1 answers
0 votes
AVINASH YADAV asked Jul 1, 2016
475 views
long fun(char *s) {long r=0;for(; *s; r=(r<<1)|(*s++ - '0'));return r;}what does fun("000001010") return??
688
views
1 answers
2 votes
manisha11 asked Sep 13, 2018
688 views
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?A) (char*) (*ptr[N])( )(B) (char*(*)) (*ptr[N])( )(C) (char*(...
389
views
2 answers
1 votes
Amit puri asked Sep 20, 2016
389 views
how to calcuate the address