what is Loop function? What are different types of Loops?
Answer / Santosh Kumar Dixit
A loop function allows code to repeat a specific section multiple times. In C++, there are three main types of loops: for loop, while loop, and do-while loop. For example, the for loop can be used to iterate through an array: for (int i = 0; i < 10; i++) { cout << i << 'n'; }
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we use this pointer inside static member function?
How are pointers type-cast?
What is the use of default constructor?
What is the need of a destructor? Explain with the help of an example.
What is the cout in c++?
Which field is used in c++?
What is difference between array and vector in c++?
write infinite loop in C++ which does not use any variable or constant?
How does class accomplish data hiding in c++?
Does improper inheritance have a potential to wreck a project?
Are php strings immutable?
What is private public protected in c++?