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 |
Explain how do you list files in a directory?
Which header file is essential for using strcmp function?
char ch=10;printf("%d",ch);what is the output
/*program to calculate hra,da in salary if salary less than 10000 then hra15%,da13% otherwise hra20%,da18%/*
What are header files and what are its uses in C programming?
Explain what is wrong with this statement? Myname = ?robin?;
Explain Basic concepts of C language?
How can I read and write comma-delimited text?
What does the file stdio.h contain?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What is the purpose of main( ) in c language?
What are preprocessor directives in c?