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
In c language can we compile a program without main() function?
What do you mean by command line argument?
Can you write the function prototype, definition and mention the other requirements.
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
The file stdio.h, what does it contain?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Differentiate abs() function from fabs() function.
What does %c mean in c?
What is .obj file in c?
What is the main difference between calloc () and malloc ()?
what is the height of tree if leaf node is at level 3. please explain
What is getch c?
regarding pointers concept
Explain do array subscripts always start with zero?
How can I convert a number to a string?