Technical Discussion :: C
5. What is the difference between 'break' and 'continue' statements?
Answer:
If we see any loop if break is present then the loop terminates and comes out of the loop. Break is used in switch .
Where as in continue it just skips the below statements.continue is used in loops
Asked In :: Sopra Steria
If we see any loop if break is present then the loop terminates and comes out of the loop. Break is used in switch .
Where as in continue it just skips the below statements.continue is used in loops