void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / alan
when ever a cout or a printf statement is used..the instruction is processed from right to left..
had this been the qn
int i=5;
printf("%d%d",i++ + ++i,i);
ans would be 125.
as i said earlier the processing takes from right to left..
so first ++i=6,
then i++=6;
therfore 6+6=12..
| Is This Answer Correct ? | 16 Yes | 8 No |
Post New Answer View All Answers
When was c language developed?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What are types of preprocessor in c?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is f'n in math?
What do you mean by c what are the main characteristics of c language?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
I heard that you have to include stdio.h before calling printf. Why?
Why is sprintf unsafe?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
How can I read/write structures from/to data files?
What is bubble sort technique in c?
Explain what is page thrashing?