Definition – What is Source Code
Source codes are human-readable computer instructions that are basically written for developing a program for solving a real-world problem. In general, the source code are written and saved into a source file with the proper file extension depending on the programming language like C, C++, Java
Explanation of Source Code
For writing source code different computer programming language can be used. Tools like notepad++, Atom, Codeblocks, Netbeans, Eclipse are very popular for writing source code. The source code is understandable and readable for humans. But the computer can not understand the source code directly. First, every program has to compile to execute and perform on the computer. Here compiling is the process of translating the human-readable code into machine language.
Machine Language is another type of programming language that can’t be understand and readable for human. But it is very easy for understanding by the computer. Source code written in C is saved in a source file with file extension .c. (Ex: hello.c). See hello world program example written in C:
// printf() displays the string inside quotation