Source Code

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 etc. Sometimes the source code can be written in a Scripting language or markup language rather than using a Programming language.

Scripting language and markup language generally used to develop and design the website and maintaining the world wide web. A scripting language like Javascript is widely used and very popular. Another type of source file can be written in the stylesheet language. This code is written for designing the webpage (For example CSS).

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:

#include <stdio.h>
int main()
// printf() displays the string inside quotation
printf(“Hello, World!”);
return 0;