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
difference between Low, Middle, High Level languages in c ?
What is sizeof in c?
What is nested structure with example?
Where does the name "C" come from, anyway?
How can I call a function with an argument list built up at run time?
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)
What is data structure in c and its types?
define string ?
What are different types of operators?
What oops means?
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
int far *near * p; means
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
Why double pointer is used in c?
how to construct a simulator keeping the logical boolean gates in c