Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
77 views

Lecture-01 (Introduction To C Programming)

The document provides an introduction to a C programming course. It outlines the course details, prerequisites, reference books, and contact information for the tutor. It also lists online resources for course materials and discussion. The outline introduces topics that will be covered, including the history of C programming, features of the C language, what C is used for, the basic structure of a C program, and a hello world program.

Uploaded by

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

Lecture-01 (Introduction To C Programming)

The document provides an introduction to a C programming course. It outlines the course details, prerequisites, reference books, and contact information for the tutor. It also lists online resources for course materials and discussion. The outline introduces topics that will be covered, including the history of C programming, features of the C language, what C is used for, the basic structure of a C program, and a hello world program.

Uploaded by

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

INTRODUCTION TO C PROGRAMMING

Lecture-01
Computer Programming
Course Code: CSE 1113 Conduct by
Khawja Imran Masud
Assistant Professor, Department of CSE
Dhaka University of Engineering & Technology, Gazipur
Email: kimasud.cse@duet.ac.bd , eimran.cse@gmail.com
Course at a glance!
1 2 3
Course Details: Class Time & Location: Tutor Contact:
Computer Programming Monday: 08:30 AM - 09:30 AM Khawja Imran Masud
Course Code: CSE 1113 Wednesday: 08:30 AM - 09:30 AM Room# 7025, New Academic
Credit: 3.00 Building, DUET
☏ 01925527821
✉ kimasud.cse@duet.ac.bd
5 4
Prerequisites: Reference Book:
Just little of patience in the 1) Teach Yourself C
beginning and school math. by Herbert Schildt
2) Programming in ANSI C
by E Balagurusamy

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 2


Course related links!
1 2 3
E-Learning Platform: Course Materials: Zoom
ELP: https://elp.duetbd.org Lectures, Videos and Ref. Book: Online Discussion(If any):
https://drive.google.com/drive/folders https://bdren.zoom.us/j/624769
/1TisMknG3_-_r7RF7fkj2jd0Y- 18000?pwd=QitweVFxVjJSUVZCc
4aMDKfi?usp=sharing 1BWd2xjTmViZz09

5 4
Resource-2: Resource-1:
https://www.javatpoint.com/c- http://www.lysator.liu.se/c/bwk-
programming-language-tutorial tutor.html

https://www.geeksforgeeks.org/c- https://codeforwin.org/2017/08/intr
programming-language/ oduction-c-programming.html

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 3


Outline

Introduction to C
01 programming 04 What is C used for?

History of Basic Structure of C Program


02 Programming C 05 and Hello world program

03 Features of C Language

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 4


Introduction to C
C programming is considered as the base for other programming languages, that is why it is
known as mother language. It can be defined by the following ways:

 Mother language
 System programming language
 Procedure-oriented programming language
 Structured programming language
 Mid-level programming language

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 5


Introduction to C (cont.)
 C as a mother language: C language is considered as the mother language of all the modern
programming languages because most of the compilers, JVMs, Kernels, etc. are written in
C language, and most of the programming languages follow C syntax, for example, C++,
Java, C#, etc.

 C as a system programming language: A system programming language is used to create


system software. C language is a system programming language because it can be used to
do low-level programming (for example driver and kernel). It is generally used to create
hardware devices, OS, drivers, kernels, etc. For example, Linux kernel is written in C.

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 6


Introduction to C (cont.)
 C as a procedural language: A procedural language specifies a series of steps for the
program to solve the problem. A procedural language breaks the program into functions,
data structures, etc. C is a procedural language. In C, variables and function prototypes
must be declared before being used.

 C as a structured programming language: A structured programming language is a subset of


the procedural language. Structure means to break a program into parts or blocks so that it
may be easy to understand.

 C as a mid-level programming language: C is considered as a middle-level language because


it supports the feature of both low-level and high-level languages.

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 7


History of C
 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.
Language Year Developed By
*It was developed to Algol 1960 International Group
overcome the problems of BCPL 1967 Martin Richard
previous languages such as B,
B 1970 Ken Thompson
BCPL, etc.
Traditional C 1972 Dennis Ritchie
*Initially, C language was K&RC 1978 Kernighan & Dennis
developed to be used in UNIX Ritchie
operating system. It inherits ANSI C 1989 ANSI Committee
many features of previous ANSI/ISO C 1990 ISO Committee
languages such as B and BCPL C99 1999 Standardization
Committee

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 8


Features of C Language
 C is small(only 32 keywords).
 C has rich set of built-in functions and support variety of data types& operators.
 C is highly portable (Machine independent).
 C is structured.
 C has ability to extend itself.
 C is stable(the language doesn’t change much).
 C is quick running (code written in c is efficient & fast).
 C is the basis for many other languages(C++, C#, Java, Perl etc.).
 C is a Programmers Language.

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 9


What is C used for?
 –OSes, like Linux, Windows, Mac
 –Microcontrollers: automobiles and airplanes
 –Embedded processors: phones, portable electronics, etc.
 –DSP processors: digital audio and TV systems.

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 10


Basic Structure of C Program

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 11


Hello world Program

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 12


Any Questions?

12/12/2022 K I Masud, Assistant Professor, Department of CSE, DUET 13

You might also like