An introduction to the C Programming Language
Ever wondered how operating systems are designed? Or how some of the system applications are written? Those all are written in the ‘C’ programming language.
According to Wikipedia, “C is a general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion, while a static type system prevents unintended operations”.
In simple words, it is a general-purpose programming language which features economy of expression,modern control flow and data structures, and a rich set of operators. ‘C’ is not a “high level language”(!), but it’s generality make it more convenient and effective for many tasks than supposedly more powerful languages.
This was developed by Dennis Ritchie and his colleague Ken Thompson between 1972 and 1973 at Bell Labs. It was originally intended for Unix, to make utilities running on it. A lot has changed since then! C gradually gained popularity and nowadays it is second widely used programming language, according to the TIOBE Index of March 2020. It also got crowned the “Language of the Year 2019”, also by TIOBE.
‘C’ also influenced many other programming languages like C++, Python, Java, C#, Perl, JavaScript, Rust and many more. ‘C’ is also a base for programming. If you’ve learnt ‘C’, you can go and learn other programming languages with the concepts of ‘C’ as a base, because most of the languages have same fundamentals like data types, operators, control statements and many more.
‘C’ is the lingua franca of programming. The advantage to knowing ‘C’ is that you have a very good idea of how a computer works. Not just how your programming model works, but how memory’s laid out, and suchlike. Knowing ‘C’ also lets you appreciate how much less work you have to do in a higher level language. And hopefully an appreciation of the cost involved in working in that higher level language. C is really flexible to system software development as well as application software development. Even today when performance (speed of execution) is considered, C becomes primary choice of programmers. ‘C’ is a middle-level language as it combines the best part of a high-level language with low-level language. In addition, it is user oriented as well as machine oriented and provides infinite possibilities.
Enough with the formalities, I’ll be explaining the basic “Hello, World!” program and how to write it and also will be explaining how to install a compiler to run the programs you’ve written in ‘C’ in my next post. Stay tuned! xD