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
Answer / suji
THE PROGRAM DOES NOT RETURN ANY THING.. IT WILL SHOW THE ERROR
| Is This Answer Correct ? | 10 Yes | 2 No |
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 |
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 |
Answer / anil kumar singh
this program depend on compiler dos turbo3 cpp
error msg:Lvalue required
| Is This Answer Correct ? | 0 Yes | 1 No |
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….
1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision
how to implement stack work as a queue?
Why c is called a mid level programming language?
Describe newline escape sequence with a sample program?
what is a c-language.what is do.
from which concept of 'c', the static member function of 'c++' has came?
What does the c in ctime mean?
Is c procedural or functional?
What is the method to save data in stack data structure type?
what is c language?
Is it possible to execute code even after the program exits the main() function?