A brief history of C Language
In the early 1970s, the C programming language was designed and implemented by Dennis Ritchie at Bell Laboratories on a DEC PDP-11 that used the UNIX operating system. During development of the language, it was influenced by an older language called BPCL, which was developed by Martin Richards. The language BPCL influenced a language called B (written by Ken Thompson) which led to the development of C in the 1970s.
For many years C was practiced with the UNIX operating system. The American National Standards Institute (ANSI) formed a committee in the summer of 1983 to create a standard specification of C. The committee took six years and approved a version of C in 1989 which is known as ANSI C. This version of the language is referred as ANSI C or sometimes C89. The ANSI C standard was finally approved by the International Standards Organization (ISO) in 1990 (also called C90).
Features of C Language
C is a small but extremely powerful and versatile language and becoming one of the most popular languages of all time to create all most all types of software development project. C is used to write programs for operating systems, database management systems , word processors, graphics, spreadsheets and compilers (including C compilers).
C is a general-purpose programming language with features of expression, data structures, flow control, a rich set of operators, a small number of keywords, pointers, and built-in functions. C is a not a high-level language rather it is middle-level language which gives us the power and potential portability of high-level languages along with the flexibility to low-level languages, such as assembly language.
Several features make C a very attractive programming language for large and small development. These includes performance features, such as efficiency and speed of the executable program.
C was originally designed for and implemented on the UNIX operating system, but later production compilers become available for other machines, including the IBM System/370, the Honeywell 6000, and the Interdata 8/32. C is not attached to any particular operating system or hardware which means a program written in C will run on another system or machine that supports C.
Another significant feature of C language is its ability to extend itself. A C program is a collection of one or more functions supported by C library. We can create and add our own functions to the C library and can be reused for other applications.
Features of the w3resource C Tutorial
In this series of tutorials, we have covered C Programming in detail. While creating this, we have taken care that learners can master the fundamentals of C Language.
Here is a list of features we have included in all of the chapters :
1. We have started with a brief history and simple description.
2. We have given a Syntax / Usage so that you can remember how to write it.
3. Example(s) to show how the associated concept is implemented.
4. We have shown the Output of the usage.
5. Pictorial presentation to help you to understand the concept better.
Previous: Overview of C
Next: Compile and execute C program in Linux and Windows
C Programming: Tips of the Day
What is the difference between exit(0) & exit(1) and exit(0) & exit(1) in C?
exit(0) indicates successful program termination & it is fully portable, While
exit(1) (usually) indicates unsuccessful termination. However, it's usage is non-portable.
Note that the C standard defines EXIT_SUCCESS and EXIT_FAILURE to return termination status from a C program.
0 and EXIT_SUCCESS are the values specified by the standard to indicate successful termination, however, only EXIT_FAILURE is the standard value for returning unsuccessful termination. 1 is used for the same in many implementations though.
Ref : https://bit.ly/3l4TAjG
- Exercises: Weekly Top 16 Most Popular Topics
- SQL Exercises, Practice, Solution - JOINS
- SQL Exercises, Practice, Solution - SUBQUERIES
- Java Array: Exercises, Practice, Solution
- C Programming Exercises, Practice, Solution : Conditional Statement
- HR Database - SORT FILTER: Exercises, Practice, Solution
- C Programming Exercises, Practice, Solution : String
- Python Data Types: Dictionary - Exercises, Practice, Solution
- Python Programming Puzzles - Exercises, Practice, Solution
- C++ Array: Exercises, Practice, Solution
- C# Sharp Basic Algorithm: Exercises, Practice, Solution
- Python Lambda - Exercises, Practice, Solution
- Python Pandas DataFrame: Exercises, Practice, Solution
- Conversion Tools