what is the Output?
int a=4 b=3;
printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++);

printf("%d%d%d%d%d%d",b--,b--,--b,b--,--b,--b);

Answers were Sorted based on User's Feedback



what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / ii yr information technology

466799
3200-2-3

Is This Answer Correct ?    29 Yes 14 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / arun sebastin

9 9 7 6 6 4

-2 -1 -1 1 1 2

The conceptis simple dothe operation in reverse

Is This Answer Correct ?    9 Yes 2 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / suresh mca

output
997664
-2-1-1112


here the concept is very is....
the work flow of the printf statement is right to left
and display of the statement is left to right.......
thats all very simple logic

Is This Answer Correct ?    7 Yes 0 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / malith

9,10,7,6,10,4-2,-1,-3,1,-3,-3

Is This Answer Correct ?    1 Yes 2 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / dumitru

in Open Suse the result is:

9 10 7 6 10 4

-2 -1 -3 1 -3 -3

Is This Answer Correct ?    2 Yes 4 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / lohith

997664 -2-1-1112

Is This Answer Correct ?    5 Yes 9 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / mathan kumar .t

6,6,5,5,5,4
0,0,0,1,1,2

Is This Answer Correct ?    1 Yes 6 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / vinod kumar

in fedora it is giving
91076104
-2-1-31-3-3

but dont know how

Is This Answer Correct ?    0 Yes 5 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / pedda

4,5,4,4,5,4
3,3,2,3,2,2

Is This Answer Correct ?    2 Yes 10 No

what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); prin..

Answer / lingaraja.d

5,5,5,5,5,5 2,2,2,2,2,2

Is This Answer Correct ?    3 Yes 16 No

Post New Answer

More C Interview Questions

what is the advantage of software development

1 Answers  


How can a process change an environment variable in its caller?

0 Answers  


What is wrong with this program statement?

0 Answers  


How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST

6 Answers   Adobe, Huawei,


What are conditional operators in C?

0 Answers   Adobe,






Where in memory are my variables stored?

0 Answers  


Explain what is the advantage of a random access file?

0 Answers  


What is a structural principle?

0 Answers  


Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 Answers  


What are the advantages of the functions?

0 Answers  


#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

6 Answers   ME,


main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }

4 Answers  


Categories