void main()
{
int i=5;
printf("%d",i+++++i);
}
Answer Posted / vamsi
Hi Guys.....
The answer is
6+6 = 12
The compiler will take the expression as
i++ + ++i
And the expression would be evaluated from Right to left ...
so answer is 12 and i=7;
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is typedf?
Is multithreading possible in c?
Give differences between - new and malloc() , delete and free() ?
What are the different categories of functions in c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Why n++ execute faster than n+1 ?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What are variables and it what way is it different from constants?
What is clrscr in c?
What are enums in c?
What are types of structure?
What is an expression?
write a program to print data of 5 five students with structures?
How can you pass an array to a function by value?