The design and development of software programs
A programming language is a formal language which follows a set of rules (syntax) to describe the behaviour of the program.
Common languages you may have heard of are:Python, JavaScript, C, C#, C++, .NETWe will be learning C in this course!
C is a general-purpose programming language used to write software.
It is used very commonly!In fact all the major operating systems (Windows, Mac, and Linux) are written in C!
#include <stdio.h>
int main(void) {
int number = 5; // C offers variables!
number = 5 * 2; // C offers maths!
if (number == 10) { // C offers conditions!
printf("5 x 2 is 10"); // C offers output!
} else {
printf("5 x 2 is not 10!");
}
return 0;
}
And lots more!
Source code files for programs written in C usually have a .c
file extension.
Ultimately, all source code files are just text documents that can be edited with any text editor.