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 |
If we give two names then this displays the connection between the two people. It is nothing but flames game
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
Write a c program to sort six numbers and find the largest one by using the ladder of if-else? plz do help me
IS Doon college of Engn.. has good faculty
What is meant by high-order and low-order bytes?
What are the functions to open and close file in c language?
which one low Priority in c? a)=,b)++,c)==,d)+
What is the output for the following program #include<stdio.h> main() { char a[5][5],flag; a[0][0]='A'; flag=((a==*a)&&(*a==a[0])); printf("%d\n",flag); }
Why do we use stdio h and conio h?
how to execute with out main in cprogram
How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets
Explain c preprocessor?