Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 # 34812

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 24576

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 10236




Answers / { satyasaran }

Question { Infosys, 65931 }

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