differentiate between break and exit statement in c programming language?
Answers
Answer:
The major difference between break and exit() is that break is a keyword, which causes an immediate exit from the switch or loop ( for , while or do ), while exit() is a standard library function, which terminates program execution when it is called. ... break is a keyword in C.
Hope it helps you
Answer:
The major difference between break and exit() is that break is a keyword, which causes an immediate exit from the switch or loop ( for , while or do ), while exit() is a standard library function, which terminates program execution when it is called. ... break is a keyword in C.
break is a keyword in C. exit() is a standard library function. break causes an immediate exit from the switch or loop ( for , while or do ). exit() terminates program execution when it is called.
Explanation:
hope it's helpful