What will be the output of the following program
#include<stdio.h>
void main()
{
int i=20;
i-=i+++++i++;
printf("%d",i);
}
Answer Posted / 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 |
Post New Answer View All Answers
Give differences between - new and malloc() , delete and free() ?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
Why do we use c for the speed of light?
What is console in c language?
What Is The Difference Between Null And Void Pointer?
What is variable declaration and definition in c?
Describe newline escape sequence with a sample program?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
Is it better to bitshift a value than to multiply by 2?
The file stdio.h, what does it contain?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
List some of the dynamic data structures in C?
using for loop sum 2 number of any 4 digit number in c language
What are types of functions?