moira


{ City }
< Country > india
* Profession *
User No # 85840
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Questions / { moira }
Questions Answers Category Views Company eMail




Answers / { moira }

Question { 28563 }

#include
void main()
{
int i=1;
printf("%d%d%d",i++,++i,i);
}


Answer

ans is 2 2 1.printf gets exe from rit to left so i =1,++i is 2,den i++ is 2 ..values are pushed into stack frm rit to left..so in stack 1 gets pushed first den 2 den 2.while pop d result is 2 2 1.

Is This Answer Correct ?    0 Yes 0 No