What will be the output of the following program
#include<stdio.h>
void main()
{
int i=20;
i-=i+++++i++;
printf("%d",i);
}

Answers were Sorted based on User's Feedback



What will be the output of the following program #include<stdio.h> void main() { int i=..

Answer / suji

THE PROGRAM DOES NOT RETURN ANY THING.. IT WILL SHOW THE ERROR

Is This Answer Correct ?    10 Yes 2 No

What will be the output of the following program #include<stdio.h> void main() { int i=..

Answer / shajitha

Answer will be 42.
i++ =20
i+++=20+
i+++++i=20+22
i+++++i++=42

Is This Answer Correct ?    7 Yes 6 No

What will be the output of the following program #include<stdio.h> void main() { int i=..

Answer / j mahesh

i=20
i++ + ++i =20 + 21=41
i-=41
i=i-41 =20-41
i= -21

Is This Answer Correct ?    4 Yes 4 No

What will be the output of the following program #include<stdio.h> void main() { int i=..

Answer / jeevitha

i-=i++ + ++i++
i-=41++
i-=42
i=20-42
i=-22

Is This Answer Correct ?    1 Yes 2 No

What will be the output of the following program #include<stdio.h> void main() { int i=..

Answer / anil kumar singh

this program depend on compiler dos turbo3 cpp
error msg:Lvalue required

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

What does the characters “r” and “w” mean when writing programs that will make use of files?

0 Answers  


How is pointer initialized in c?

0 Answers  


Why is c fast?

0 Answers  


what do u mean by Direct access files? then can u explain about Direct Access Files?

0 Answers   LG Soft,


Simplify the program segment if X = B then C &#8592; true else C &#8592; false

0 Answers  


How variables are declared in c?

0 Answers  


what are bit fields in c?

2 Answers  


25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?

11 Answers   CTS, TCS,


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

0 Answers   Wipro,


What are volatile variables?

1 Answers   Mind Tree,


Identify the correct argument for the function call fflush () in ANSI C: A)stdout B)stdin C)stderr D)All the above

5 Answers   Accenture, TCS,


Explain how do you determine the length of a string value that was stored in a variable?

0 Answers  


Categories