Sea of C
C is one of the oldest programming languages but yet holds a significant value in today’s contemporary world. If someone ever pens a novel on the evolution of C, it would top the list of top best sellers, purely due to the intriguing journey that C has had.
In this blog post, I will take you through this journey. I will briefly introduce the history of C followed by the evolution and features of C, and finally the robustness of C.
So, let’s see how C evolved.
History of C
C was developed by Dennis Ritchie at the AT&T Bell Labs. The motivating factor for Dennis Ritchie was the fact that many of C’s predecessor languages like B and BCPL had quite a few drawbacks which were hindering the development. So, C was the go-to solution to the drawbacks caused by B and BCPL. Although C inherited many features from B and BCPL, yet it was robust enough to eliminate the drawbacks caused by these programming languages.
Evolution of C
Initially, C was being used on the UNIX operating system to build various utilities. C began to garner lots of traction in the 1980s. It became one of the most sought-after programming languages. In fact, the first-ever book written on C programming The C Programming Language, authored by Dennis and Brian in 1978, remained one of the best sellers during the early and mid-80s.
| The cover page of The C Programming Language book |
Object Oriented C
In 1978, another developer Bjarne Stroustrup gave special capabilities to C. Initially, he called it as C with Classes, and later on this capability developed into a different programming language which we call as C++ today. C++, as we know it today, inherits many of its programming constructs from C but additionally provides object-oriented features like Classes, Objects, Encapsulation, Polymorphism, Inheritance, and so on. Apart from C++, many other programming languages like C#, C Shell, PHP, Python, PERL, Java, JavaScript, and Go have directly or indirectly inherited programming constructs from C.
ANSI C
In 1983, the American National Standards Institute (ANSI) developed a set of standards specifications for C. In 1989, ANSI formally approved its version of C and it was known as ANSI C. The ANSI C was adopted by the International Standards Organization (ISO) in 1990.
Features of C
C is a statically typed, procedure-oriented language that follows the classical line-by-line execution of code. C programs are generally executed by a compiler. A C program starts with a set of preprocessor directives, followed by the main() function, and then the body of the code. The following points highlight some of the important features of C.
A rich collection of libraries that can be used as preprocessor directives.
Supports a wide range of data types like int, char, float, double, and so on.
Supports control statements like If, If-else, If-else-if, nested-if, and Switch.
Supports loop statements like For, While, and do-while.
Supports a wide variety of operators like arithmetic, assignment, logical, and so on.
Supports data structures like Arrays, Stacks, Queues, Linked lists, and so on.
Supports user-defined data types like Structures, Unions, Typedef, and Enum.
Provides a wide variety of file-handling functions.
Provides memory management functions.
Resilience of C
C has seen the development and evolution of many programming languages like Java, Python, PHP, Go, and so on. A lot of languages will continue to evolve in the future. However, C has remained resilient and robust enough and will continue to do so. Many of the traditional applications that were written on C continue to exist and run on C. Porting them to languages like Java and Python is not feasible and can lead to lots of bugs. Apart from traditional applications, C is still considered one of the most preferred languages in the development of Operating Systems, Compilers, embedded software, device drivers, Databases, video games, and so on. This is because C provides you with direct access to system resources which in turn allow you to control them through the code.
Apart from the system software, and device drivers, C is the go-to language for one of the top technologies used today; Internet of Things (IoT). C today is widely used in many IoT applications and continues to be the first language of choice for many IoT engineers. This is because C provides direct access to hardware and memory resources and it’s an open secret that these resources are pretty scarce in IoT and need to be managed efficiently.
Another in-demand technology that has conquered the world today is Machine Learning (ML). A good portion of readers might argue that Python is the dearest language for ML engineers but C is not far behind. In fact, in ML applications where Python is not feasible, C is the most preferred language. Also, what many people are unaware of is the fact that C also supports many ML libraries which are commonly used in Python. Even though these libraries are natively used in Python and C++, you can customize and use them in C language too. Some of the famous C-based ML libraries are as follows.
Conclusion
Today’s AI-centric world depends a lot on modern programming languages. However, amidst all this AI juggernaut, C still holds its significance and remains a force to be reckoned with. In the future, may be after some 100 years, modern programming languages might totally replace C, but as of today, it's here to stay.
Comments
Post a Comment