satyasaran


{ City } delhi
< Country > india
* Profession * student
User No # 7781
Total Questions Posted # 2
Total Answers Posted # 1

Total Answers Posted for My Questions # 6
Total Views for My Questions # 32473

Users Marked my Answers as Correct # 14
Users Marked my Answers as Wrong # 11
Questions / { satyasaran }
Questions Answers Category Views Company eMail

Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures.

Google,

3 C 23337

Consider a language that does not have arrays but does have stacks as a data type.and PUSH POP..are all defined .Show how a one dimensional array can be implemented by using two stacks.

Google,

3 C 9136




Answers / { satyasaran }

Question { Infosys, 60382 }

1)
int i=5;
j=i++ + i++ + i++;
printf("%d",j);This code gives the answer 15.But if we
replace the value of the j then anser is different?why?

2)int i=5;
printf("%d",i++ + i++ + i++);
this givs 18.


Answer

Remember increment operator is compiler depended.
1.
if u compiled in TC++ then u will get j=18
if u compile in VC++ then u will get j=15.
2.
if u compiled in TC++ then u will get j=18
if u compile in VC++ then u will get j=15.

Is This Answer Correct ?    14 Yes 11 No