SlideShare une entreprise Scribd logo
1  sur  11
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

Contenu connexe

Tendances

Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).ppt
Alok Kumar
 
Basics of Object Oriented Programming
Basics of Object Oriented ProgrammingBasics of Object Oriented Programming
Basics of Object Oriented Programming
Abhilash Nair
 

Tendances (20)

Object-oriented programming (OOP) with Complete understanding modules
Object-oriented programming (OOP) with Complete understanding modulesObject-oriented programming (OOP) with Complete understanding modules
Object-oriented programming (OOP) with Complete understanding modules
 
Constructor in java
Constructor in javaConstructor in java
Constructor in java
 
Javanotes
JavanotesJavanotes
Javanotes
 
Oop c++class(final).ppt
Oop c++class(final).pptOop c++class(final).ppt
Oop c++class(final).ppt
 
Java Notes
Java NotesJava Notes
Java Notes
 
Class and object
Class and objectClass and object
Class and object
 
Oop in c++ lecture 1
Oop in c++  lecture 1Oop in c++  lecture 1
Oop in c++ lecture 1
 
C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]C++ [ principles of object oriented programming ]
C++ [ principles of object oriented programming ]
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Java Tokens
Java  TokensJava  Tokens
Java Tokens
 
Basics of Object Oriented Programming
Basics of Object Oriented ProgrammingBasics of Object Oriented Programming
Basics of Object Oriented Programming
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Object oriented vs. object based programming
Object oriented vs. object based  programmingObject oriented vs. object based  programming
Object oriented vs. object based programming
 
Functional programming with Java 8
Functional programming with Java 8Functional programming with Java 8
Functional programming with Java 8
 
Function overloading
Function overloadingFunction overloading
Function overloading
 
java token
java tokenjava token
java token
 
C++ Object Oriented Programming
C++  Object Oriented ProgrammingC++  Object Oriented Programming
C++ Object Oriented Programming
 
Inheritance
InheritanceInheritance
Inheritance
 
Java data types, variables and jvm
Java data types, variables and jvm Java data types, variables and jvm
Java data types, variables and jvm
 
Learn Concept of Class and Object in C# Part 3
Learn Concept of Class and Object in C#  Part 3Learn Concept of Class and Object in C#  Part 3
Learn Concept of Class and Object in C# Part 3
 

Similaire à Course outline for c programming

An Overview Of Python With Functional Programming
An Overview Of Python With Functional ProgrammingAn Overview Of Python With Functional Programming
An Overview Of Python With Functional Programming
Adam Getchell
 

Similaire à Course outline for c programming (20)

Fundamentals of Computer Programming in C++ Key Concepts
Fundamentals of Computer Programming in C++ Key ConceptsFundamentals of Computer Programming in C++ Key Concepts
Fundamentals of Computer Programming in C++ Key Concepts
 
C, C++ Training Institute in Chennai , Adyar
C, C++ Training Institute in Chennai , AdyarC, C++ Training Institute in Chennai , Adyar
C, C++ Training Institute in Chennai , Adyar
 
Cmp 104
Cmp 104Cmp 104
Cmp 104
 
Presenter manual embedded systems (specially for summer interns)
Presenter manual   embedded systems (specially for summer interns)Presenter manual   embedded systems (specially for summer interns)
Presenter manual embedded systems (specially for summer interns)
 
Android classes-in-pune-syllabus
Android classes-in-pune-syllabusAndroid classes-in-pune-syllabus
Android classes-in-pune-syllabus
 
Android training in Nagpur
Android training in Nagpur Android training in Nagpur
Android training in Nagpur
 
Syllabus lect computer_engineering(tech_edudeptt)
Syllabus lect computer_engineering(tech_edudeptt)Syllabus lect computer_engineering(tech_edudeptt)
Syllabus lect computer_engineering(tech_edudeptt)
 
Cpcs302 1
Cpcs302  1Cpcs302  1
Cpcs302 1
 
Top Python Online Training Institutes in Bangalore
Top Python Online Training Institutes in BangaloreTop Python Online Training Institutes in Bangalore
Top Python Online Training Institutes in Bangalore
 
APS PGT Computer Science SylIabus
APS PGT Computer Science SylIabusAPS PGT Computer Science SylIabus
APS PGT Computer Science SylIabus
 
EST 102 C P.pptx
EST 102 C P.pptxEST 102 C P.pptx
EST 102 C P.pptx
 
C syllabus - Learn C Language for programming Skills
C syllabus - Learn C Language for programming Skills C syllabus - Learn C Language for programming Skills
C syllabus - Learn C Language for programming Skills
 
Course Content - CETPA
Course Content - CETPACourse Content - CETPA
Course Content - CETPA
 
The Road to U-SQL: Experiences in Language Design (SQL Konferenz 2017 Keynote)
The Road to U-SQL: Experiences in Language Design (SQL Konferenz 2017 Keynote)The Road to U-SQL: Experiences in Language Design (SQL Konferenz 2017 Keynote)
The Road to U-SQL: Experiences in Language Design (SQL Konferenz 2017 Keynote)
 
BCS (WRITTEN) EXAMINATION.pptx
BCS (WRITTEN) EXAMINATION.pptxBCS (WRITTEN) EXAMINATION.pptx
BCS (WRITTEN) EXAMINATION.pptx
 
An Overview Of Python With Functional Programming
An Overview Of Python With Functional ProgrammingAn Overview Of Python With Functional Programming
An Overview Of Python With Functional Programming
 
syllabusCS.pdf
syllabusCS.pdfsyllabusCS.pdf
syllabusCS.pdf
 
Embedded system internship in chennai 2015
Embedded system internship in chennai 2015Embedded system internship in chennai 2015
Embedded system internship in chennai 2015
 
Computer programming and utilization 2110003
Computer programming and utilization 2110003Computer programming and utilization 2110003
Computer programming and utilization 2110003
 
Programming construction tools
Programming construction toolsProgramming construction tools
Programming construction tools
 

Plus de Rokonuzzaman Rony (20)

Pointer
PointerPointer
Pointer
 
Operator Overloading & Type Conversions
Operator Overloading & Type ConversionsOperator Overloading & Type Conversions
Operator Overloading & Type Conversions
 
Constructors & Destructors
Constructors  & DestructorsConstructors  & Destructors
Constructors & Destructors
 
Classes and objects in c++
Classes and objects in c++Classes and objects in c++
Classes and objects in c++
 
Functions in c++
Functions in c++Functions in c++
Functions in c++
 
Object Oriented Programming with C++
Object Oriented Programming with C++Object Oriented Programming with C++
Object Oriented Programming with C++
 
Humanitarian task and its importance
Humanitarian task and its importanceHumanitarian task and its importance
Humanitarian task and its importance
 
Structure
StructureStructure
Structure
 
Pointers
 Pointers Pointers
Pointers
 
Loops
LoopsLoops
Loops
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Array
ArrayArray
Array
 
Constants, Variables, and Data Types
Constants, Variables, and Data TypesConstants, Variables, and Data Types
Constants, Variables, and Data Types
 
C Programming language
C Programming languageC Programming language
C Programming language
 
User defined functions
User defined functionsUser defined functions
User defined functions
 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
 
Numerical Method
Numerical Method Numerical Method
Numerical Method
 
Data structures
Data structuresData structures
Data structures
 
Data structures
Data structures Data structures
Data structures
 
Data structures
Data structures Data structures
Data structures
 

Dernier

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 

Dernier (20)

UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 

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