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


Please Help Members By Posting Answers For Below Questions

An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

661


What is typedf?

674


Is multithreading possible in c?

572


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

614


What are the different categories of functions in c?

651






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 []);

1850


Why n++ execute faster than n+1 ?

1853


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

606


What are variables and it what way is it different from constants?

793


What is clrscr in c?

682


What are enums in c?

665


What are types of structure?

608


What is an expression?

660


write a program to print data of 5 five students with structures?

1612


How can you pass an array to a function by value?

608