This document provides an overview of the C programming language. It discusses the history and development of C, starting with predecessors like ALGOL-60 and BCPL in the 1960s and 1970s. C was created in the early 1970s and the first C compiler was released in 1978. Since then, C has become widely used for system programming and is foundational to many other languages like C++ and Java. The document outlines some key advantages of C, like its efficiency and ability to handle low-level tasks. It also provides brief descriptions of common C programming concepts.
1. C Programming Language
1.What is c
2. What is programming language
By Rumman Ansari
What is the meaning of computer ?
2. 1) ALGOL-1960
-First computer language
2) BCPL (Basic Combined programming language)-
1967
-(Martin-Richards developed)
3) Simply B.B -1970.
- Ken Thompson (using many features of BCPL).
-use to create early version of UNIX operating system
at bell laboratories.
-Both BCPL and B wear “typeless” system
programming language.
By Rumman Ansari
3. 4) C Programming -1770 (book-the C Programming
language-1978-Brian kerningham and Dennis
Ritches(K .R)
5)ANSI-(American National Standards Institute ).
-ANSI C committee -1989 .approved by
the....INTERNATIONAL STANDARD ORGANIZATION
(ISO)-IN 1990.
6) C++ 1990. A language entirely based on “C”.
7) JAVA-Sun Microsystems of USA
-modelled on “C” and “C++”.
8) C++ and JAVA added to “C” -STANDARD “C”----
-------C99
By Rumman Ansari
4. 1. What is COMPILER
2. What is RAM
3. What is ROM
What is microprocessor
What is arithmetic operation
What is logical operation
By Rumman Ansari
4. Memory (primary, secondary)
5. Operating System(OS)
6. What is Assembly Language?
Each personal computer has a microprocessor that manages the
computer's arithmetical, logical, and control activities.
Each family of processors has its own set of instructions for handling
various operations such as getting input from keyboard, displaying
information on screen and performing various other jobs. These set
of instructions are called 'machine language instructions'.
A processor understands only machine language instructions, which
are strings of 1's and 0's. However, machine language is too obscure
and complex for using in software development. So, the low-level
assembly language is designed for a specific family of processors
that represents various instructions in symbolic code and a more
understandable form.
By Rumman Ansari
7. Advantages of Assembly Language
Having an understanding of assembly language makes one aware of −
How programs interface with OS, processor, and BIOS;
How data is represented in memory and other external devices;
How the processor accesses and executes instruction;
How instructions access and process data;
How a program accesses external devices.
Other advantages of using assembly language are −
It requires less memory and execution time;
It allows hardware-specific complex jobs in an easier way;
It is suitable for time-critical jobs;
It is most suitable for writing interrupt service routines and other
memory resident programs.
By Rumman Ansari
8. This is a programming on 8085 microprocessor
MVI A,09H
MVI B,02H
ADD B
MOV C,A
HLT
By Rumman Ansari
9. By Rumman Ansari
High level Language
c , c++, java all are high level programming language
10. By Rumman Ansari
C is a general-purpose, high-level language that was originally developed
by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs.
C was originally first implemented on the DEC PDP-11 computer in 1972.
In 1978, Brian Kernighan and Dennis Ritchie produced the first publicly
available description of C, now known as the K&R standard.
The UNIX operating system, the C compiler, and essentially all
UNIX applications programs have been written in C. The C has now
become a widely used professional language for various reasons.
1. Easy to learn
2. Structured language
3. It produces efficient programs.
4. It can handle low-level activities.
5. It can be compiled on a variety of computer platforms.
11. By Rumman Ansari
Facts about C
C was invented to write an operating system called UNIX.
C is a successor of B language which was introduced around 1970
The language was formalized in 1988 by the American National
Standard Institute (ANSI).
The UNIX OS was totally written in C by 1973.
Today C is the most widely used and popular System Programming Language.
Most of the state-of-the-art softwares have been implemented using C.
Today's most popular Linux OS and RBDMS MySQL have been written in C.
12. By Rumman Ansari
Why to use C?
C was initially used for system development work, in particular the
programs that make-up the operating system. C was adopted as a
system development language because it produces code that runs
nearly as fast as code written in assembly language. Some examples
of the use of C might be:
Operating Systems
Language Compilers
Assemblers
Text Editors
Print Spoolers
Network Drivers
Modern Programs
Databases
Language Interpreters
Utilities
13. By Rumman Ansari
C - Environment Setup C - Program Structure
C - Basic Syntax C - Data Types
C – Variables C - Constants
C - Storage Classes C - Operators
C - Decision Making C - Loops
C – Functions C - Scope Rules
C – Arrays C - Pointers
C – Strings C - Structures
C – Unions C - Bit Fields
C – Typedef C - Input & Output
C - File I/O C - Preprocessors
C - Header Files C - Type Casting
C - Error Handling C - Recursion
C - Variable Arguments C - Memory Management
C - Command Line Arguments