for loop - syntax and explaination
The for loop :- Syntax: for (initialization;condition ;increase) { ---------; statement; } and its main function is to repeat statement while condition remains true , like the while loop . But in addition ,for provides places to specify an initialization instruction and an increase instruction . The three expression inside for loop have to be separated by semicolon. ...