Difference between Compile Time and Run Time
Compile Time : It is a Time window During which a Program is Compiled. During Compilation , a source code or program is converted into machine code. There are two types of errors in Compile Time known as Compile Time errors : Syntax Error Semantic Error Syntax Error : The Error occurs due to mistake in syntax or predefined way of writting a programm during compilation is called Syntax Error. Example : #include<iostream> using namespace std; int main() { int a = 10: // Every statement should be ended with an ' ; ' (semicolon) , but here it is ended with // ' : ' (colon) it is an syntax error . int b = 20; return 0; } Semantic Error : The wrong and meaningless code/statement in a programm are called Semantic Errors. Example : int main() {...