what is use of for loop?

Answer Posted / geetha

for loop use is more then one calculation or process can be
performed, for example:
for(int i=0;i<5;i++)
{
printf("%d",i);
}
In the above example the printf statement can be excuted in
five times.
Output:0 1 2 3 4

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a standard template library (stl)? What are the various types of stl containers?

938


What is a stl vector?

854


Who created stl?

892


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

1898


What is stl language?

880


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

2119


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

2145


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2209


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

2144


What are the symptoms of stl?

850


What does stl stand for in basketball?

866


What is a standard template library (stl)?

858


What is the use of stl?

843


Who wrote stl?

908


Name the different types of stl containers.

919