What is the difference between run-time and compile-time?
The major difference between run-time and compile time is:
int a = 1
int b = a/0;
here first line doesn't have a semi-colon at the end---> compile time error after executing the program while performing operation b, result is infinite---> run-time error.