0

It's about the program written on the page. I removed all the break but still the program executes and display Wednesday. Why?

as I have understood if break statement is not there the program should execute repeatedly till infinity. because no breaks means flow will be going on. so can anyone help me to understand where I am wrong. it would be a great help for me to understand. regards, jitu

8th Jan 2017, 2:04 PM
Jitu Barman
Jitu Barman - avatar
4 odpowiedzi
+ 7
break stops loops, not the program!
8th Jan 2017, 2:08 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
Recursion (make main() function call itself forever…)
8th Jan 2017, 2:15 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
so how can we create an infinite Loop so that the program doesn't end.
8th Jan 2017, 2:09 PM
Jitu Barman
Jitu Barman - avatar
0
so if we write a program for any robotic operation and we use simply the main() to make it speak always than will it work?
8th Jan 2017, 2:18 PM
Jitu Barman
Jitu Barman - avatar