Types of error ////

what are the reasons for runtime error and compilationion error

@Namanjain123 Compile time errors occur mainly due to syntax mistakes. Example: missing semicolon, missing parenthesis, using wrong syntax for some predefined function.

Errors which occur during program execution(run-time) after successful compilation are called run-time errors. One of the most common run-time error is division by zero also known as Division error. Also if you have created an array of size say 100 and if you try to access 101st element at any point in your code, then this will also cause a runtime error(array index out of bounds ).

Hope this helps :slightly_smiling_face: