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

What is call by reference in functions?

1418


Which is best book for data structures in c?

1088


I heard that you have to include stdio.h before calling printf. Why?

1049


What the advantages of using Unions?

1216


What are the types of type qualifiers in c?

1073


What is a floating point in c?

1062


Explain setjmp()?

1059


Give me the code of in-order recursive and non-recursive.

1362


What is double pointer?

988


When should you not use a type cast?

1112


What is a good way to implement complex numbers in c?

1040


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

1165


What is time null in c?

1067


What is a macro?

1090


Why string is used in c?

995