r.balasubramanian


{ City } chennai
< Country > india
* Profession *
User No # 17086
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 # 4
Users Marked my Answers as Wrong # 0
Questions / { r.balasubramanian }
Questions Answers Category Views Company eMail




Answers / { r.balasubramanian }

Question { 9623 }

what is strcture

i++ i ++i answer to this i=5 what is the out put


Answer

My answer is
1.
#include
using namespace std;
int main()
{
int i = 5;
cout << ++i << i << i++ << endl;
return 0;
}
ANS:765

2.
#include
using namespace std;
int main()
{
int i = 5;
cout << ++i ;
cout << i ;
cout << i++ << endl;
return 0;
}
ANS:666

Is This Answer Correct ?    4 Yes 0 No