+ 7

What is dynamic nested for loop

Dynamic in a sense means that if i will enter 3 then the program will work as if 3 nested for loops are created ... And if i entered 4 then 4 nested loops

28th Feb 2019, 2:44 PM
Doggy
Doggy - avatar
4 Respostas
+ 4
I hava seen it on various other sites where recursion is used it the while(status ) loop and status is a boolean variable and it becomes false when the work similar to n nested loops is over but i was not able to understand it completely. thanks for the reply...
28th Feb 2019, 10:54 PM
Doggy
Doggy - avatar
+ 4
One solution this i found is backtracking ..... Is there any other alternative
4th Mar 2019, 8:53 PM
Doggy
Doggy - avatar
+ 1
As far as I know, there is no such option in C++ But you're welcome to hack your way in!
28th Feb 2019, 5:26 PM
Rakibul Yeasin
Rakibul Yeasin - avatar