What is the difference between compile time error and run time error?

What is the difference between compile time error and run time error?

Some main differences between compiler time error and run time error are given below:

1.Compile time error are semantic and syntax    error. Where Run time error are memory allocation error e.g. segmentation fault.

2.Compile time errors comes because of improper Syntax.Where In java Run time Errors are considered as Exceptions.Run time errors are logical errors.

3.Compile time errors are handled by compiler. where Run time errors are handled by programmers.

By:Vivek Kr. Agarwal
Date:2002-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher