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

Hi Every one...........I have been selected for the SBI Clerk. But i m one month Pregnanat. So anyone please suggest me, is they take any objection on my joining .

4 Answers   State Bank Of India SBI,


SRUCTURE PROGRAMMING

3 Answers   CTS, Wipro,


What is typeof in c?

0 Answers  


What is void c?

0 Answers  


how many error occurs in C language ?

22 Answers   Infosys, Wipro,






being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?

1 Answers   TCS,


What is pass by reference in functions?

0 Answers  


What's a "sequence point"?

3 Answers  


Which is the best sort method for library management?

1 Answers   Microsoft,


How to add two numbers with using function?

4 Answers  


Explain the difference between ++u and u++?

0 Answers  


What is the concatenation operator?

0 Answers  


Categories