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

how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");

Answer Posted / vignesh1988i

this will give an warning message .....

it will print the "Hi" infinite times...... since we used
assignment opeartor in the termination condition of the
looping statement....

when i is initilized to 0 first.. again i=10 is been
initilized to 10... so however i is been incremented by 2 or
by n times.... i=10.. which will be an non zero value.... so
it wont come out of the loop.... infered as infinite running.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

4188


What does the function toupper() do?

1068


Explain how to reverse singly link list.

1075


What are the primitive data types in c?

1008


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1135


Explain what does the function toupper() do?

1007


Why is not a pointer null after calling free?

973


What are the differences between new and malloc in C?

1075


What is oops c?

1117


Why can arithmetic operations not be performed on void pointers?

984


What are 'near' and 'far' pointers?

984


Explain union. What are its advantages?

1010


What is unsigned int in c?

934


Explain the use of 'auto' keyword in c programming?

1073


Why c language is called c?

953