There are two types of codes that are as follows:
1. Source Code:
A program written in a high-level language is called source code.Source code is also called source program.Computer cannot understand the statements of high-level language.It is converted into object code and then executed.
2. Object Code:
A program in machine language is called object code.It is also called object program or machine code.Computer understands object code directly.
Difference b/w Source Code and Object Code :
Source Code:
- Source code is written in high-level or assembly language.
- Source code is easy to understand.
- Source code is easy to modify.
- Source code contains fewer statements than object code.
Object Code:
- Object code is written in machine language.
- Object code is difficult to understand.
- Object code is difficult to modify.
- Object code contains more statements than source code.
No comments:
Post a Comment