SlideShare a Scribd company logo
WHY “C”…????
WHATS “C”…????
Variables and Assignment ,and functions


Types
Declarations
Assignment
Printing the Value of a Variable
functions
Printing Expressions
“Print f ” and “sac f” statements
Conversion Specifications
PROGRAM: Using ”print f” to Format Numbers
Escape Sequences

The ”scan f “Function
 How scan f Works
Ordinary Characters in Format Strings


Expressions operators
Arithmetic Operators
 Increment and Decrement Operators

Expression Evaluation
 Expression Statements


Selection Statements





Logical Expressions
The if Statement
The switch Statement
The break statement
loops








do statement
do while statement
if statement
IFELSE statement
for statement
Continue , GOTO , break statements.

Integer Types







Integer Constants
Floating Types
Character Types
The size of Operator
Type Conversion
Type Definitions
Arrays
One-Dimensional Arrays



Two –dimensional array
Multidimensional Arrays

Functions
Defining and Calling Functions
Function Declarations
Arguments
The ”return” Statement
The ”exit” Function
Recursive Functions
Pointers












Pointer Variables
The Address and Indirection Operators
Pointer Assignment
Pointers as Arguments
Pointers as Return Values
Pointers and Arrays
Pointer Arithmetic
Using Pointers for Array Processing
Using an Array Name as a Pointer
Pointers and Multidimensional Arrays

Strings






String Literals
String Variables
Reading and Writing Strings
Accessing the Characters in a String
Using the C String Library
Structures and Unions






Structure Variables
1Structure Types
Nested Arrays and Structures
Unions
THANK YOU…

More Related Content

What's hot

What's hot (20)

Variable declaration
Variable declarationVariable declaration
Variable declaration
 
Variables in C Programming
Variables in C ProgrammingVariables in C Programming
Variables in C Programming
 
Learn C# Programming - Operators
Learn C# Programming - OperatorsLearn C# Programming - Operators
Learn C# Programming - Operators
 
C
CC
C
 
Hive
HiveHive
Hive
 
Modula 2 tutorial - 003 - declarations
Modula 2 tutorial - 003 - declarationsModula 2 tutorial - 003 - declarations
Modula 2 tutorial - 003 - declarations
 
Complete Tokens in c/c++
Complete Tokens in c/c++Complete Tokens in c/c++
Complete Tokens in c/c++
 
Learn C# Programming - Variables & Constants
Learn C# Programming - Variables & ConstantsLearn C# Programming - Variables & Constants
Learn C# Programming - Variables & Constants
 
T03 a basicioprintf
T03 a basicioprintfT03 a basicioprintf
T03 a basicioprintf
 
Basic Programming of c++
Basic Programming of c++Basic Programming of c++
Basic Programming of c++
 
Bsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageBsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c language
 
Diploma ii cfpc u-2 datatypes and variables in c language
Diploma ii  cfpc u-2 datatypes and variables in c languageDiploma ii  cfpc u-2 datatypes and variables in c language
Diploma ii cfpc u-2 datatypes and variables in c language
 
functional programming & c++
functional programming & c++functional programming & c++
functional programming & c++
 
New lambdas
New lambdasNew lambdas
New lambdas
 
Btech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c languageBtech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c language
 
Mca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageMca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c language
 
CHAPTER 2
CHAPTER 2CHAPTER 2
CHAPTER 2
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
 
Introduction to programming c and data-structures
Introduction to programming c and data-structures Introduction to programming c and data-structures
Introduction to programming c and data-structures
 

Similar to C ppt

Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
valarpink
 

Similar to C ppt (20)

Chapter 01 Introduction to Java by Tushar B Kute
Chapter 01 Introduction to Java by Tushar B KuteChapter 01 Introduction to Java by Tushar B Kute
Chapter 01 Introduction to Java by Tushar B Kute
 
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
 
Programming in C
Programming in CProgramming in C
Programming in C
 
Unit 4 Foc
Unit 4 FocUnit 4 Foc
Unit 4 Foc
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
Ch02
Ch02Ch02
Ch02
 
Compiler Construction.pptx
Compiler Construction.pptxCompiler Construction.pptx
Compiler Construction.pptx
 
Programming-in-C
Programming-in-CProgramming-in-C
Programming-in-C
 
Esoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programmingEsoft Metro Campus - Certificate in c / c++ programming
Esoft Metro Campus - Certificate in c / c++ programming
 
Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
 
CProgrammingTutorial
CProgrammingTutorialCProgrammingTutorial
CProgrammingTutorial
 
Basic Of C language
Basic Of C languageBasic Of C language
Basic Of C language
 
C programming tutorial for Beginner
C programming tutorial for BeginnerC programming tutorial for Beginner
C programming tutorial for Beginner
 
Getting started with c++
Getting started with c++Getting started with c++
Getting started with c++
 
Getting started with c++
Getting started with c++Getting started with c++
Getting started with c++
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
C programing Tutorial
C programing TutorialC programing Tutorial
C programing Tutorial
 
Cnotes
CnotesCnotes
Cnotes
 
Programming in c
Programming in cProgramming in c
Programming in c
 

More from IT LearnMore

More from IT LearnMore (17)

SAP Success Factors Online Training
SAP Success Factors Online TrainingSAP Success Factors Online Training
SAP Success Factors Online Training
 
SAP HCM Consultant
SAP HCM ConsultantSAP HCM Consultant
SAP HCM Consultant
 
SAP MM Practice exam
SAP MM Practice examSAP MM Practice exam
SAP MM Practice exam
 
SAP SD Practice Exam
SAP SD Practice ExamSAP SD Practice Exam
SAP SD Practice Exam
 
SAP SRM Practice Exam
SAP SRM Practice ExamSAP SRM Practice Exam
SAP SRM Practice Exam
 
SAP BASIS Practice Exam
SAP BASIS Practice ExamSAP BASIS Practice Exam
SAP BASIS Practice Exam
 
SAP ABAP Interview questions
SAP ABAP Interview questionsSAP ABAP Interview questions
SAP ABAP Interview questions
 
SAP HR AND HCM Practice Exam
SAP HR AND HCM Practice ExamSAP HR AND HCM Practice Exam
SAP HR AND HCM Practice Exam
 
SAP ABAP Practice exam
SAP ABAP Practice examSAP ABAP Practice exam
SAP ABAP Practice exam
 
SAP FICO Practice Exam
SAP FICO Practice ExamSAP FICO Practice Exam
SAP FICO Practice Exam
 
SAP CRM Interview questions
SAP CRM Interview questions SAP CRM Interview questions
SAP CRM Interview questions
 
SAP HR AND HCM Interview questions
SAP HR AND HCM Interview questionsSAP HR AND HCM Interview questions
SAP HR AND HCM Interview questions
 
SAP SD interview questions
SAP SD interview questions SAP SD interview questions
SAP SD interview questions
 
SAP SRM Interview questions
SAP SRM Interview questionsSAP SRM Interview questions
SAP SRM Interview questions
 
SAP MM Interview questions
SAP MM Interview questionsSAP MM Interview questions
SAP MM Interview questions
 
SAP HANA Interview questions
SAP HANA Interview questionsSAP HANA Interview questions
SAP HANA Interview questions
 
SAP FICO Interview questions
SAP FICO Interview questionsSAP FICO Interview questions
SAP FICO Interview questions
 

Recently uploaded

plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
parmarsneha2
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
YibeltalNibretu
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
plant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated cropsplant breeding methods in asexually or clonally propagated crops
plant breeding methods in asexually or clonally propagated crops
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 

C ppt

  • 1.
  • 2.
  • 3. WHY “C”…???? WHATS “C”…???? Variables and Assignment ,and functions  Types Declarations Assignment Printing the Value of a Variable functions Printing Expressions
  • 4. “Print f ” and “sac f” statements Conversion Specifications PROGRAM: Using ”print f” to Format Numbers Escape Sequences  The ”scan f “Function  How scan f Works Ordinary Characters in Format Strings  Expressions operators Arithmetic Operators  Increment and Decrement Operators  Expression Evaluation  Expression Statements  Selection Statements     Logical Expressions The if Statement The switch Statement The break statement
  • 5. loops       do statement do while statement if statement IFELSE statement for statement Continue , GOTO , break statements. Integer Types      Integer Constants Floating Types Character Types The size of Operator Type Conversion Type Definitions
  • 6. Arrays One-Dimensional Arrays   Two –dimensional array Multidimensional Arrays Functions Defining and Calling Functions Function Declarations Arguments The ”return” Statement The ”exit” Function Recursive Functions
  • 7. Pointers           Pointer Variables The Address and Indirection Operators Pointer Assignment Pointers as Arguments Pointers as Return Values Pointers and Arrays Pointer Arithmetic Using Pointers for Array Processing Using an Array Name as a Pointer Pointers and Multidimensional Arrays Strings      String Literals String Variables Reading and Writing Strings Accessing the Characters in a String Using the C String Library
  • 8. Structures and Unions     Structure Variables 1Structure Types Nested Arrays and Structures Unions