C Language Programming: Agenda
C Language Programming: Agenda
Agenda:
1. Why Programming
2. Types of Programming
3. Introduction to C
4. Benefits of C
5. Some Facts about C
6. Understanding First C Program
7. Executing using IDE
Computer cannot understand our Native language like English, French, Chinese, Hindi, etc… It will only
understand Binary Language (Machine Language) and as Humans we don’t understand binary so easily…
So we need now an intermediate solution like Programming Language.
A programmer needs a programming language to develop an application.
An Application is collection of meaning instructions so perform a specific task.
When an application is executed, data is inputted to it and the same flows through the instructions and
generates output.
As a developer when you are supposed to write an application, you have to instruct the computer to perform
an action as per your needs.
Types of Programming
1. System Programming.
a. Programs which are between OS and Hardware
b. Eg: Device Drivers
2. Application Programming.
a. Programs which are between user and the OS.
b. Eg: Notepad, Calculator, Paintbrush and so on.
Introduction of C
C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie and Ken
Thompson to develop the UNIX operating system at AT&T Bell Labs.
C was originally first implemented on the DEC PDP-11 computer in 1972 and was developed in assembly
language.
C Language Programming Introduction
Programming Language), now known as the K&R standard. Both of them added lots of features to
language "C".
Until the early 1980s, although compilers existed for a variety of machine architectures and
operating systems, the language was almost exclusively associated with Unix
In 1989 the American National Standards Institute (ANSI) committe published a standard for C
(generally called "ANSI C")
Today, the UNIX operating system, the C compiler, and essentially all UNIX applications programs have been
written in C
Benefits of ‘C’:
1. General Purpose Language and is Easy to Learn
2. Its Procedural Programming Language.
3. It’s the best alternative to coding in Assembly language which is very tough.
4. Flexibility towards both Systems Programming and Application Programming.
5. Availability of large number of operating systems.
6. Availability of extensive library function enhancing basic functions.
C Language Programming Introduction
7. Same C source code can be compiled for very wide variable of computers and OS. The language has
Facts about C
Today C is the most widely used and popular System Programming Language.
Today's most popular Linux OS and RBDMS MySQL have been written in C.
Today many languages are derived from C , examples C++, Java, C#, Objective C and many more…
What is Compiler?
Compiler is a special program which converts the source code (statements) of a particular language into
into machine language i.e. the instructions which the computer understands.
The output of the compilation is called object code.
Compiler is also responsible for checking the Syntax of the language and point out errors if any.