SlideShare a Scribd company logo
PRESENTATION
ON
C PROGRAMMING
Presented By
Rokonuzzaman Rony
CSE 2B
Department of Computer Science &
Engineering
Northern University of Business and Technology Khulna
Chapters:
 Absolute basics
 Languages: natural and artificial
 Machine languages
 High-level programming languages
 Obtaining the machine code: compilation
process
 Recommended readings
 Your first program
 Variable – why?
 Integer values in real life and in “C”, integer
literals
Data types
 Floating point values in real life and in “C”, float
literals
 Arithmetic operators
 Priority and binding
 Post- and pre -incrementation and -decrementation
 Operators of type
 Char type and ASCII code, char literals
 Equivalence of int and char data
 Comparison operators
 Conditional execution and if keyword
 printf() and scanf() functions: absolute basics
Data type
 Flow control
 Conditional execution continued: the “else”
branch
 More integer and float types
 Conversions – why?
 Typecast and its operators
 Loops – while, do and for
 Controlling the loop execution – break and
continue
 Logical and bitwise operators
Arrays
 Switch: different faces of ‘if’
 Arrays (vectors) – why do you need them?
 Sorting in real life and in a computer memory
 Initiators: a simple way to set an array
 Pointers: another kind of data in “C”
 An address, a reference, a dereference and the
sizeof operator
 Simple pointer and pointer to nothing (NULL) &
operator
 Pointers arithmetic
 Pointers vs. arrays: different forms of the same
phenomenon
Array
 Using strings: basics
 Basic functions dedicated to string manipulation
 Memory management and structures
 The meaning of array indexing
 The usage of pointers: perils and disadvantages
 Void type
 Arrays of arrays and multidimensional arrays
 Memory allocation and deallocation: malloc() and
free() functions
 Arrays of pointers vs. multidimensional arrays
 Structures – why?
 Declaring, using and initializing structures
Array
 Pointers to structures and arrays of structures
 Basics of recursive data collections
Functions
 Functions – why?
 How to declare, define and invoke a function
 Variables' scope, local variables and function
parameters
 Pointers, arrays and structures as function
parameters
 Function result and return statement
 Void as a parameter, pointer and result
 Parameterzing the main function
 External function and the extern declarator
 Header files and their role
Files and streams
 Files vs. streams: where does the difference
lie?
 Header files needed for stream operations
FILE structure
 Opening and closing a stream, open modes, errno
variable
 Reading and writing to/from a stream
 Predefined streams: stdin, stdout and stderr
 Stream manipulation: fgetc(), fputc(), fgets() and
fputs() functions
 Raw input/output: fread() and fwrite() functions
 Preprocessor and complex declarations
 Preprocessor – why?
 #include: how to make use of a header file
 #define: simple and parameterized macros
File structure
 #undef directive
 Predefined preprocessor symbols
 Macro operators: # and ##
 Conditional compilation: #if and #ifdef directives
 Avoiding multiple compilations of the same header
files
 Scopes of declarations, storage classes
 User defined types-why?
 Pointers to functions
 Analyzing and creating complex declarations

More Related Content

PPTX
Programming Fundamentals With OOPs Concepts (Java Examples Based)
PPTX
Classes objects in java
PDF
Object oriented concepts
PDF
C++ Object oriented concepts & programming
PPTX
Introduction to Java
PPTX
Object oriented programming
PPT
Object Oriented Programming lecture 1
Programming Fundamentals With OOPs Concepts (Java Examples Based)
Classes objects in java
Object oriented concepts
C++ Object oriented concepts & programming
Introduction to Java
Object oriented programming
Object Oriented Programming lecture 1

What's hot (20)

PDF
Object-oriented programming (OOP) with Complete understanding modules
PPTX
Constructor in java
PDF
Javanotes
PPTX
Oop c++class(final).ppt
PPT
Java Notes
PDF
Class and object
PPTX
Oop in c++ lecture 1
PDF
C++ [ principles of object oriented programming ]
PDF
PPTX
PPTX
Basics of Object Oriented Programming
PPT
PPT
Object oriented vs. object based programming
PPTX
Functional programming with Java 8
PDF
Function overloading
PPTX
C++ Object Oriented Programming
PDF
Inheritance
PDF
Java data types, variables and jvm
PPTX
Learn Concept of Class and Object in C# Part 3
PDF
Oops concepts || Object Oriented Programming Concepts in Java
Object-oriented programming (OOP) with Complete understanding modules
Constructor in java
Javanotes
Oop c++class(final).ppt
Java Notes
Class and object
Oop in c++ lecture 1
C++ [ principles of object oriented programming ]
Basics of Object Oriented Programming
Object oriented vs. object based programming
Functional programming with Java 8
Function overloading
C++ Object Oriented Programming
Inheritance
Java data types, variables and jvm
Learn Concept of Class and Object in C# Part 3
Oops concepts || Object Oriented Programming Concepts in Java
Ad

Similar to Course outline for c programming (20)

PDF
C programming
PPTX
Fundamentals of Computer Programming in C++ Key Concepts
DOC
Course Breakup - C Porgramming Language
DOC
Course Break - C Language
DOC
Student copybca sem1-c
DOC
Coursebreakup
DOC
Coursebreakup
PDF
C, C++ Training Institute in Chennai , Adyar
PPT
PPTX
Fundamentals of Data Structures Unit 1.pptx
PPTX
Fundamentals of computer programming by Dr. A. Charan Kumari
PPTX
Introduction to computers, input and output devices
DOC
Coursebreakup
PPTX
C language by Dr. Gholkar D. R.
PPTX
PPTX
C for Engineers
PPTX
Introduction to c
PPTX
C language
PPTX
Fundamental programming Nota Topic 2.pptx
PPTX
Expection Setting - 1st ppt. pptx
C programming
Fundamentals of Computer Programming in C++ Key Concepts
Course Breakup - C Porgramming Language
Course Break - C Language
Student copybca sem1-c
Coursebreakup
Coursebreakup
C, C++ Training Institute in Chennai , Adyar
Fundamentals of Data Structures Unit 1.pptx
Fundamentals of computer programming by Dr. A. Charan Kumari
Introduction to computers, input and output devices
Coursebreakup
C language by Dr. Gholkar D. R.
C for Engineers
Introduction to c
C language
Fundamental programming Nota Topic 2.pptx
Expection Setting - 1st ppt. pptx
Ad

More from Rokonuzzaman Rony (20)

PPTX
PPTX
Operator Overloading & Type Conversions
PPTX
Constructors & Destructors
PPTX
Classes and objects in c++
PPTX
Functions in c++
PPTX
Object Oriented Programming with C++
PPTX
Humanitarian task and its importance
PPTX
PPTX
PPTX
Introduction to C programming
PPTX
Constants, Variables, and Data Types
PPTX
C Programming language
PPTX
User defined functions
PPTX
Numerical Method 2
PPT
Numerical Method
PPTX
Data structures
PPT
Data structures
PPTX
Data structures
Operator Overloading & Type Conversions
Constructors & Destructors
Classes and objects in c++
Functions in c++
Object Oriented Programming with C++
Humanitarian task and its importance
Introduction to C programming
Constants, Variables, and Data Types
C Programming language
User defined functions
Numerical Method 2
Numerical Method
Data structures
Data structures
Data structures

Recently uploaded (20)

PPTX
Welding lecture in detail for understanding
PPTX
additive manufacturing of ss316l using mig welding
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
PPT on Performance Review to get promotions
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Digital Logic Computer Design lecture notes
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Welding lecture in detail for understanding
additive manufacturing of ss316l using mig welding
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT on Performance Review to get promotions
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
UNIT 4 Total Quality Management .pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Geodesy 1.pptx...............................................
Internet of Things (IOT) - A guide to understanding
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Digital Logic Computer Design lecture notes
OOP with Java - Java Introduction (Basics)
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx

Course outline for c programming

  • 1. PRESENTATION ON C PROGRAMMING Presented By Rokonuzzaman Rony CSE 2B Department of Computer Science & Engineering Northern University of Business and Technology Khulna
  • 2. Chapters:  Absolute basics  Languages: natural and artificial  Machine languages  High-level programming languages  Obtaining the machine code: compilation process  Recommended readings  Your first program  Variable – why?  Integer values in real life and in “C”, integer literals
  • 3. Data types  Floating point values in real life and in “C”, float literals  Arithmetic operators  Priority and binding  Post- and pre -incrementation and -decrementation  Operators of type  Char type and ASCII code, char literals  Equivalence of int and char data  Comparison operators  Conditional execution and if keyword  printf() and scanf() functions: absolute basics
  • 4. Data type  Flow control  Conditional execution continued: the “else” branch  More integer and float types  Conversions – why?  Typecast and its operators  Loops – while, do and for  Controlling the loop execution – break and continue  Logical and bitwise operators
  • 5. Arrays  Switch: different faces of ‘if’  Arrays (vectors) – why do you need them?  Sorting in real life and in a computer memory  Initiators: a simple way to set an array  Pointers: another kind of data in “C”  An address, a reference, a dereference and the sizeof operator  Simple pointer and pointer to nothing (NULL) & operator  Pointers arithmetic  Pointers vs. arrays: different forms of the same phenomenon
  • 6. Array  Using strings: basics  Basic functions dedicated to string manipulation  Memory management and structures  The meaning of array indexing  The usage of pointers: perils and disadvantages  Void type  Arrays of arrays and multidimensional arrays  Memory allocation and deallocation: malloc() and free() functions  Arrays of pointers vs. multidimensional arrays  Structures – why?  Declaring, using and initializing structures
  • 7. Array  Pointers to structures and arrays of structures  Basics of recursive data collections
  • 8. Functions  Functions – why?  How to declare, define and invoke a function  Variables' scope, local variables and function parameters  Pointers, arrays and structures as function parameters  Function result and return statement  Void as a parameter, pointer and result  Parameterzing the main function  External function and the extern declarator  Header files and their role
  • 9. Files and streams  Files vs. streams: where does the difference lie?  Header files needed for stream operations
  • 10. FILE structure  Opening and closing a stream, open modes, errno variable  Reading and writing to/from a stream  Predefined streams: stdin, stdout and stderr  Stream manipulation: fgetc(), fputc(), fgets() and fputs() functions  Raw input/output: fread() and fwrite() functions  Preprocessor and complex declarations  Preprocessor – why?  #include: how to make use of a header file  #define: simple and parameterized macros
  • 11. File structure  #undef directive  Predefined preprocessor symbols  Macro operators: # and ##  Conditional compilation: #if and #ifdef directives  Avoiding multiple compilations of the same header files  Scopes of declarations, storage classes  User defined types-why?  Pointers to functions  Analyzing and creating complex declarations