void main()
{
int i=5;
printf("%d",i++ + ++i);
}

Answer Posted / ishrat ali

the calculate of any expression can be done from left to
right,so first i++ compute it means 1st use then increment 5
is used in place of i++ and after using the value of i
increment that is 6.
after that ++i is used that is 1st increment then use in the
expression so now ++i is replaced by 7;
finally 6+7=12 (ans)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

difference between Low, Middle, High Level languages in c ?

1634


What is sizeof in c?

571


What is nested structure with example?

624


Where does the name "C" come from, anyway?

645


How can I call a function with an argument list built up at run time?

639






write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1627


What is data structure in c and its types?

596


define string ?

669


What are different types of operators?

598


What oops means?

584


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

632


int far *near * p; means

3121


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

635


Why double pointer is used in c?

567


how to construct a simulator keeping the logical boolean gates in c

1730