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
What is register variable in c language?
Why do we use stdio h and conio h?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Write a program that accept anumber in words
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Can a program have two main functions?
What is meant by preprocessor in c?
Explain what are the different data types in c?
Why we write conio h in c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Is struct oop?
Why is python slower than c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What is the use of printf() and scanf() functions?