0% found this document useful (0 votes)
18 views

Lecture01 C WS

Uploaded by

Orin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Lecture01 C WS

Uploaded by

Orin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Chapter 1

Introduction of c program
C Programming:
C is a general-purpose programming language created by Dennis Ritchie at the
Bell Laboratories in 1972.It is a very popular language, despite being old.

Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system.
C is the most widely used computer language. It is considered as the mother of
all languages. C is a high-level programming language that provides support to
a low-level programming language as well.

History of C Language
History of C language is interesting to know. Here we are going to discuss a brief
history of the c language.

C programming language was developed in 1972 by Dennis Ritchie at bell


laboratories of AT&T (American Telephone & Telegraph), located in the
U.S.A.Dennis Ritchie is known as the founder of the c language. It was
developed to overcome the problems of previous languages such as B, BCPL,
etc.Let's see the programming languages that were developed before C
language.
Language Year Developed By

Algol 1960 International Group

BCPL 1967 Martin Richard

B 1970 Ken Thompson

Traditional C 1972 Dennis Ritchie

K&RC 1978 Kernighan & Dennis Ritchie

ANSI C 1989 ANSI Committee

ANSI/ISO C 1990 ISO Committee

C99 1999 Standardization Committee

Why to Learn C Programming


C programming language is a MUST for students and working professionals to
become a great Software Engineer specially when they are working in Software
Development Domain. I will list down some of the key advantages of learning C
Programming:
• Easy to learn
• Structured language
• It produces efficient programs
• It can handle low-level activities
• It can be compiled on a variety of computer platforms.

Features of C Language:

C is the widely used language. It provides many features that are given below.
1. Simple
2. Machine Independent or Portable
3. Mid-level programming language
4. structured programming language
5. Rich Library
6. Memory Management
7. Fast Speed
8. Pointers
9. Recursion and Extensible
Applications of C Programming

C was initially used for system development work, particularly 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 the code written in assembly language. Some
examples of the use of C are -
• Operating Systems
• Language Compilers
• Assemblers
• Text Editors
• Print Spoolers
• Network Drivers
• Modern Programs
• Databases
• Language Interpreters
C Program:
Hello World using C Programming:

First C Program
Before starting the abcd of C language, you need to learn how to write, compile and run
the first c Program. To write the first c program, open the C console and write the
following code:
1. #include <stdio.h>
2. int main(){
3. printf("Hello C Language");
4. return 0;
5. }
#include <stdio.h> includes the standard input output library functions. The printf()
function is defined in stdio.h .
int main() The main() function is the entry point of every program in c language.
printf() The printf() function is used to print data on the console.
return 0 The return 0 statement, returns execution status to the OS. The 0 value is used
for successful execution and 1 for unsuccessful execution.
Install:

1. What is c programming language or C?


2. What are the applications of the C program?
3. Write down the features of the C program?
4. Explain the structure of the c program with an example?
5. Write a c program to print “Hello World”?
6. What are the advantage of C?
7. Write down the execution process of C?

You might also like