Saturday, 5 September 2020

Types of error in C

1.Syntax Error

It is the error in programs grammatical rule or in writing format.This type of error is detected by translator during translation so,it is easier to correct.

2.Semantic(Logical error)

It is an error(bug) in the concept or the logic of the program like formula mistakes.

3.Run-time error

It is an error that is generated while the program is being executed.For example: Memory leak.

No comments:

Post a Comment

If you have any doubt, please ask in the comment section.

Search This Blog

Program to print weather the number is happy or not.

#include <stdio.h> #include <math.h> int main () { int i , j , num , temp , sum = 0 ; printf ( "Enter number\n...