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...

for(i=0;i=printf("Hello");i++);
printf("Hello");
how many times how will be printed?????????

Answer Posted / kalyan chukka

Here in the loop it given as i=0;i=printf("Hello");
So Printf function returns how many no of charecters it
printed so it takes 5 so loop is

for (i=0;i=5;i++) so loop will be this
in the above loop first i=0 and then we assign i=5 so loop
will become for(i=5;i++) it becomes infinite loop hello
printed infineite loop.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program that accept anumber in words

1712


Why is this loop always executing once?

1002


How reliable are floating-point comparisons?

1040


How can I handle floating-point exceptions gracefully?

1110


Why cant I open a file by its explicit path?

991


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

975


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

949


State the difference between realloc and free.

1034


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

2392


What is the difference between break and continue?

1400


Can main () be called recursively?

1066


Apart from dennis ritchie who the other person who contributed in design of c language.

1323


Explain which function in c can be used to append a string to another string?

1039


When should a type cast not be used?

1008


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

982