What is a source code?
The above mentioned question might seem trivial. A source code is the set of instructions that we type in the editor of C language. But I was quite amazed when I found the truth.
Source Code is not at all the lines that we type in the editor. It is basically the code produced by the compiler after compilation. The compiler produces a code for the assembler and that particular code acts as the source code for the assembler. Such a code is normally termed as object code also.
Object code and source code are related to each other. Basically, the source code is the code that goes into the device and the object code is the code produced by the device. This object code can also be termed as target code. The target code of one device is the source code of another device.
Thus, it can be concluded that if the assembler is considered as the centre of a program's execution and main device, then the compiler-generated code is the source code. This is a pretty debatable issue but certainly a marvel of the C language.