C Programming-Overview of C, Slides of C programming

C Programming-Overview of C-Lecture Notes

Typology: Slides

2025/2026

Uploaded on 03/07/2026

bhuvaneswaran
bhuvaneswaran 🇮🇳

1 document

1 / 40

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
B.Bhuvaneswaran, AP (SG) / CSE
9791519152
bhuvaneswaran@rajalakshmi.edu.in
Programming Logic
Overview of C
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download C Programming-Overview of C and more Slides C programming in PDF only on Docsity!

B.Bhuvaneswaran, AP (SG) / CSE 9791519152 [email protected] Programming Logic

Overview of C

Basics of C Language

 C language was developed by Dennis Ritchie of Bell Laboratories in New Jersey in the year 1972.  The language was named as C because it was the successor of another language called B.

Compilers Vs Interpreters

History of ANSI C

Typical Structure of POP

Relationship of Data & Functions in POP

Basic Structure of C Programs

Documentation Section

 The documentation section consists of a set of comment lines giving the name of the program, the author and other details, which the programmer would like to use later.

Definition Section

 The definition section defines all symbolic constants.

Global Declaration Section

 There are some variables that are used In more than one function.  Such variables are called global variables and are declared in the global declaration section that is outside of all the functions.  This section also declares all the user–defined functions.

main() function Section

 The declaration part declares all the variables used in the executable part.  There is at least one statement in the executable part.  These two parts must appear between the opening and the closing braces.  The program execution begins at the opening brace and ends at the closing brace.  The closing brace of the main function section is the logical end of the program.  All statements in the declaration and executable parts end with a semicolon(;).

Sub program Section

 The subprogram section contains all the user–defined functions that are called In the main function.  User–defined functions are generally placed immediately after the main function, although they may appear in any order.

Executing a C Program

 Executing a program written in C involves a series of steps. These are:

  • Creating the program;
  • Compiling the program;
  • Linking the program with functions that are needed from the C library; and
  • Executing the program.

Compiling and Running a C Program