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

Is there a way to jump out of a function or functions?

1105


What is c programming structure?

1208


why return type of main is not necessary in linux

2111


What does c mean?

1057


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

1128


What is signed and unsigned?

1067


Why is c called a mid-level programming language?

1210


C language questions for civil engineering

1722


What does struct node * mean?

1024


What is the use of a ‘’ character?

1095


Why is c called c?

1029


What are reserved words?

1115


What are the advantages of c language?

1099


what do you mean by enumeration constant?

1015


What is the significance of c program algorithms?

1147