I suggest learning by doing. We can only explain the same thing so many ways.
Create a for loop thay iterates 0-20 and a single if condition. If I ==10 then break. Outside of the if statement print a line of text.
Compile and run it, you will see break exits the scope of the for loop and prints the statement. Changing break to return you will notice it will not print the statement since it returns immedietly.
I explained this and why it happens on the first page that cater linked.
Code
Void test(){
for(i=0;i<20;i++){
If(I==10){
Break;
}
}
Printf("wow\n");
}
This post was edited by AbDuCt on Apr 28 2016 08:11am