Professional Documents
Culture Documents
C Language
Introduction of C Language
• We will Cover this Chapter
• Define C Language
• History of C language
• Features of C Language
• What will you gain if you learn C?
INTRODUCTION OF C LANGUAGE
Learn C Programming
C is a powerful general-purpose programming
language. It is fast, portable and available in all
platforms.
If you are new to programming, C is a good
choice to start your programming to day.
This is a comprehensive guide on how to get
started in C programming language, why you
should learn it and how you can learn it.
What is C (Programming Language)? - The Basics
• ANSI C
• With the rapid growth of C language for several years, it was time
for language to get it standardized.
• C89. The first standard of C was published by American National
Standards Institute (ANSI) in 1989. This version is commonly popular
as C89.
• C99. In late 1990’s, several new features like inline functions, several
new data types and flexible array-members were added to the C
standard. This is commonly known as C99.
• C11. The C11 standard has new features like type generic macros,
atomic operations, anonymous structures that doesn’t exist in C99.
• All these three standards are also known by the name of ANSI C.
Features of C Programming Language
• General purpose.
• C is used in variety of applications from system
programming to photo editing softwares. Some of the
applications where C programming is used are as
follows:
• Embedded Systems
• Operating System - Windows, Linux, OSX, Android, iOS
• Databases - PostgreSQL, Oracle, MySQL, MS SQL Server
• Other Uses - Network drivers, Compilers, Print spoolers
What will you gain if you learn C?
If you know C, you will not only know how your program works
but, you will be able to create a mental model on how a
computer works (including memory management and
allocation). You will learn to appreciate the freedom that C
provides unlike Python and Java.
Languages like C# and Java are related to C and C++. Also, the
syntax of JavaScript and PHP is similar to C.
If you know C and C++ programming, you will not have any
problem switching to another language.
C Programming Keywords and
Identifiers
• Character set
• Character set is a set of alphabets, letters and
some special characters that are valid in C
language.
• Alphabets
• Uppercase: A B C ................................... X Y Z
Lowercase: a b c ...................................... x y z
• C accepts both lowercase and uppercase
alphabets as variables and functions.
Digits
• 0123456789
C Keywords
Along with these keywords, C supports other numerous keywords depending upon the
compiler
C Identifiers