Errors in C programming
Md Mahabub Rahman
Lecturer, CE (HSTU)
Following Error occurs in c programming
1. Syntax error
A syntax error occurs when a programmer writes an invalid line of
code. This can happen when a programmer misspells a word, forgets a
semicolon, or doesn't close a bracket.
2. Linking error
Linker errors happen when the linker cannot find the libraries or object
code necessary to create a running executable.
3. Declaring error
• Not declaring a variable used in the program.
• Not following the grammatical rules used in the declaration of the
variable.
4. Logical or semantic error
• Writing invalid program logic that produces incorrect results when
the instructions are executed.
• From the above-mentioned errors compiler cannot detect
logical or semantic error.
• However, result will be incorrect
• Thus, programmers should be cautious/careful while coding the
logical part of the program keeping in mind that,
“no errors in compilation of program gives no guaranty having no
errors in program”
Structure of C programming
IDE: Integrated Development Environment
IDE consists of three main things,
1. Source code editor
2. Debugger
3. Compiler
Different types of IDE
C compiler
•A
C
compiler
converts
a
program written in
C
into
an
executable that a
computer
can
run. Examples are
given here.
Difference between IDE and Compiler