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

Lect 1 Programming Logic Using ‘C’ Introduction

The document outlines the syllabus for a course titled 'Programming Logic Using C' presented by Atul Kumar Uttam at GLA University. It covers various modules including introduction to C programming, control flow, functions, arrays, pointers, file handling, and historical context of the C language. The document also highlights the development timeline of the C programming language from its inception to standardization.

Uploaded by

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

Lect 1 Programming Logic Using ‘C’ Introduction

The document outlines the syllabus for a course titled 'Programming Logic Using C' presented by Atul Kumar Uttam at GLA University. It covers various modules including introduction to C programming, control flow, functions, arrays, pointers, file handling, and historical context of the C language. The document also highlights the development timeline of the C programming language from its inception to standardization.

Uploaded by

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

Programming Logic Using ‘C’

BCAC0001
Lect-1 Introduction
Presented by:
Atul Kumar Uttam
Assistant Professor
Computer Engineering & Applications Department,
GLA University, Mathura
[email protected], +91-8979593001

BCAC0001 Programming Logic Using C 1


Syllabus
Module I
• Introduction
– History, Facilities, Concepts, Uses
– Basic Program Structure, Header-Files, Comments;
– A Simple C program, Identifiers, Basic Data Types and Sizes
– Constants & Variables,
– Operators
– Type Conversions
– Expressions
– Precedence and Order of Evaluation.

BCAC0001 Programming Logic Using C 2


Syllabus
Module I
• Input-Output Functions
– Data Input and Output, scanf(), printf(), functions.
• Control Flow:
– If-Else
– While
– Do-while
– Goto
– For Statements
– Nested Control Structures
– Switch, Break, Continue Statements

BCAC0001 Programming Logic Using C 3


Syllabus
Module II
• Functions
– Definition, types, Parameters, Prototypes
– Recursion
– Passing Arguments to a Function by value & by reference
• Storage Classes
– Automatic, External, Static, Register
• Arrays
– Arrays Defining
– Processing Array
– Introduction to Multidimensional Arrays
– gets(), puts() functions
– Passing Arrays to Functions

BCAC0001 Programming Logic Using C 4


Syllabus
Module II
• Pointer
– Usage of Pointers
– Addresses and Types
– Pointer and Address Arithmetic
– Pointer Operations and Declarations
– Using Pointers as Function Arguments
– Pointer Array Duality Strings Arrays of Pointers
– Pointers to Functions
– Concept of Dynamic Allocation of Memory
• Pre-Processor Directives

BCAC0001 Programming Logic Using C 5


Syllabus
Module II
• Other Data Types
– Structures, Member Accessing, Pointers to Structures, Structures
and Functions, Arrays of Structures
– Unions
– Enumerations and Bit Fields
– Typedef
• File Handling
– Introduction of File Handling
– Modes of File Handling
– Uses of fopen(), fclose(), putc(), getc(), putw(), getw(), fscanf(),
fprintf(), ferror() Functions

BCAC0001 Programming Logic Using C 6


1800
BCAC0001 Programming Logic Using C 7
INSPIRING EARLY COMPUTING

• Ada Lovelace
• The first programmer
• 1843
• Predicted that one
day the theoretical
computer would be
able to play music, as
well as chess – but
never think of itself

BCAC0001 Programming Logic Using C 8


UNIX (1969)
• Kenneth Thompson and Dennis
Ritchie
• AT&T Bell Labs
• MULTICS (Multiplexed Operating
and Computing System) by
General Electric, Massachusetts
Institute for Technology and Bell
Laboratories.
• UNIX combined many of the
timesharing and file
management features offered by
Multics.
Ken Thompson (L) and Dennis Ritchie (R)
BCAC0001 Programming Logic Using C 9
C programming language
1972
• Dennis Ritchie and his team created C
• Based on the earlier language BCPL (Basic Combined
Programming Language)
• Wrote the source code for Unix in C.
• As such, Unix was easily ported to other computers
and spread swiftly.
• C is still widely used today.

BCAC0001 Programming Logic Using C 10


Timeline of C language development

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

BCAC0001 Programming Logic Using C 11

You might also like