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

Difference between for loop and while loop?

Answer Posted / dev yadav

in for loop we should know initial &last condition.....but in while loop we only know the last condition....
ex. of for loop..for(i=0;i<=10;i++){
printf("%d",i);
}
ex. of while loop..while(i<=10){
printf("%d",i);
i++;
}

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many keywords (reserve words) are in c?

1083


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

1200


How can I discover how many arguments a function was actually called with?

1018


Explain is it valid to address one element beyond the end of an array?

1147


Do string constants represent numerical values?

1323


What is #define size in c?

1118


What are the advantages of the functions?

1096


What do you mean by dynamic memory allocation in c?

1050


What are types of structure?

1065


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1010


Can the size of an array be declared at runtime?

1024


which is an algorithm for sorting in a growing Lexicographic order

1747


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1968


List a few unconditional control statement in c.

929


How many parameters should a function have?

1127