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


Please Help Members By Posting Answers For Below Questions

Give differences between - new and malloc() , delete and free() ?

605


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

1836


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

579


Why do we use c for the speed of light?

603


What is console in c language?

601






What Is The Difference Between Null And Void Pointer?

636


What is variable declaration and definition in c?

497


Describe newline escape sequence with a sample program?

648


"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

652


Is it better to bitshift a value than to multiply by 2?

654


The file stdio.h, what does it contain?

663


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1672


List some of the dynamic data structures in C?

785


using for loop sum 2 number of any 4 digit number in c language

1731


What are types of functions?

559