Errors in C – language/Program

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.

Segmentation Error

> This will generate if you are accessing unauthorized memory. Means that particular memory is not reserved for your program (SIGSEGV).

Bus Error-

> 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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: