Thursday, 9 July 2015

Types of Codes :

                                 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:

  1. Source code is written in high-level or assembly language.
  2. Source code is easy to understand.
  3. Source code is easy to modify.
  4. Source code contains fewer statements than object code.

Object Code:

  1. Object code is written in machine language.
  2. Object code is difficult to understand.
  3. Object code is difficult to modify.
  4. Object code contains more statements than source code.

No comments:

Post a Comment