closed by
245 views
0 votes
0 votes
closed as a duplicate of: Test series
the output of the following problem?

main()

{

  int a=1,b=2,c=4;

  printf("%d",a+=(a+=4,10,a));

}

 

Explain?
closed by

Related questions

6.3k
views
2 answers
2 votes
nish kim asked Aug 31, 2017
6,345 views
#include <stdio.h>int main(){int a=1 , b=3;a += b -= a-=b;printf("%d %d",a,b);}what is the output ?a. 3 4b. 3 5c. 2 4d. compilation fails
426
views
1 answers
0 votes
radha gogia asked Aug 10, 2015
426 views
CASE A: CASE A: &#8234;#&lrm;include&#8236;<stdio.h> int divide( int a, b) { return 7; } int main() { int a=divide(8,3); printf("%d",a); return 0; }CASE B ... then why not in case A , why is the type of b not considered to be of type int ?
416
views
0 answers
0 votes
Ajitesh Mandal asked Apr 3, 2017
416 views
What is the output of the program?? I think the output should be 2 2 1 . But on running the program gives the output 2 3 3 . Pls explain why that output 2 3 3 in details .#include< ... main(){ int a=1; printf("%d %d %d",a++,++a,a);}
2.6k
views
1 answers
0 votes
debasree88 asked Apr 24, 2019
2,582 views
#include <stdio.h> #include<stdlib.h> int main() { //code char *ptr,s[]="debasree"; ptr=s[0]; printf("%s\n",*ptr); return 0; } ... what is the warning saying? i googled a lot but could not grasp it pls pls pls pls explain...