There are mainly two different types of Errors:
1. Compile time Error-
> It means Error generated by compiler
> There are three types of compiler errors:
a. Compile time Preprocessor Error.
b. Compile time Translator Error.
c. Compile time Linker Error.
2. Run time Error-
> It means Error generated by OS.
> This will generate if you are accessing unauthorized memory. Means that particular memory is not reserved for your program (SIGSEGV).
> If your program tries to access unauthorized memory, it means that particular memory is not present in RAM.
Floating type Exception Error-
> Dividing by zero, we can easily find this error out.