exit( ) function terminates the entire program and gives the control to operating system.
break statement terminates the block and control goes out of the block. generally, break statements are often used in switch case statements.
This site provides C programming interview questions along with well-explained answers and interview tips
| Static Global Variable | Global Variable | |
| Scope | File in which it is declared | Across files if declared as extern |
| Lifetime | Entire program execution | Entire program Execution |
| Value | Persists across the function calls | Persists across the function calls |
| Accessibility | Only the file in which it is declared | Any file or function of the program |