SlideShare a Scribd company logo
1 of 16
SHALINI KUMARI
  11ERWCSO74
CONTENTS
•   INTRODUCTION
•   CHARACTERSTICS
•    STRUCTURE OF PROGRAM
•   DATA TYPE
•   IF ELSE
•   SWITCH CASE
•   LOOPING
•   ARRAY
•   POINTER
•   STRUCTURE
•   FUNCTION
INTRODUCTION
• C language is one of the most popular
  computer language today because it is a
  structured ,low level ,machine dependent
  language

• It is developed by DENNIS RITCHIE in
  between 1969 and 1973 at bell labs.
CHARECTERISTICS
• There are a small, fixed number of keywords,
  including a full set of flow of control
  primitives : for, while, if, do while and switch.

• More than one assignment may be performed
  in a single statement.

• There are a large number of arithmetical and
  logical operators, such as +, +=, ++, &, ~, etc.
STRUCTURE OF PROGRAM
•   Documentation Section       //optional
•   Link section              //optional
•   Defining section           //optional
•   Global declaration section //optional
•   Main function section            //Must
{
            Declaration part
            Executable part.
}
• Sub program
  section            //optional
•         Function 1
•         Function 2
• Function n
WHAT IS DATA TYPE ?
A data type in a programming language is a
  set of data values having predefine
  characteristics.
there are three classes of data types:
              Data Type



Primitive      derived        user define
TYPES OF DATA TYPE
In c language compiler support five
  fundamental data type namely integer
  (int), character(char), floating
  point(float),double and void.

Derived data types are array, structure,
 pointer, function.

A user define data type is basically made
  by the user itself.
IF ELSE STATEMENT
The if statement is a powerful decision making statement .
If ....else statement is a extention of the simple if statement
   . The general form is :
        if(test expression)
          {
              true-block statement(s)
                 }
              else
               {
                    false –block statement(s)
                  }

n
SWITCH CASE
It is a control statement that provides a facility
  for multiway branching from a particular point.
 syntax:
       switch(expression)
       {
         case labels:
        break;
          }
LOOPING
To execute a set of instructions repeatedly until a
  particular condition is being satisfied.
                     LOOP


        For            While            Do while
        loop           loop             loop
Syntax of loops
  For loop-
For(intialization ; test condition ; increment)
{
Body of the loop
}
  While loop-                  Do while loop-
While(test condition)          do
{                                {
Body of the loop                    body of the loop
}                                  }
ARRAY
An array is a collection of elements of the same
  data type.
Syntax :
 data type arrayname[size];
             Type of array

 1 dimensional   2 dimensional   Multi-dimensional
POINTER
C allow us to store the address of one variable in
  another variable.
Syntax:
   data type *ptrname;
                 STRUCTURE
Binding of different type of data member in a
  single entity.
Syntax:         struct structurename
             {      different datatype
                        };
FUNCTION
A function definition specifies the name of
  the function, the types and number of
  parameters it expects to receive, and its
  return type.
              Types of functions

Built in function     User define function
C Programming Guide for Beginners

More Related Content

What's hot

String in c programming
String in c programmingString in c programming
String in c programmingDevan Thakur
 
Introduction to Basic C programming 01
Introduction to Basic C programming 01Introduction to Basic C programming 01
Introduction to Basic C programming 01Wingston
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C ProgrammingMOHAMAD NOH AHMAD
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Languagesatvirsandhu9
 
Input and output in C++
Input and output in C++Input and output in C++
Input and output in C++Nilesh Dalvi
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programmingHarshita Yadav
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGAbhishek Dwivedi
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial javaTpoint s
 
358 33 powerpoint-slides_7-structures_chapter-7
358 33 powerpoint-slides_7-structures_chapter-7358 33 powerpoint-slides_7-structures_chapter-7
358 33 powerpoint-slides_7-structures_chapter-7sumitbardhan
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C ProgrammingKamal Acharya
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programmingTarun Sharma
 
Chapter1 c programming data types, variables and constants
Chapter1 c programming   data types, variables and constantsChapter1 c programming   data types, variables and constants
Chapter1 c programming data types, variables and constantsvinay arora
 
Variables in C and C++ Language
Variables in C and C++ LanguageVariables in C and C++ Language
Variables in C and C++ LanguageWay2itech
 

What's hot (20)

C programming notes
C programming notesC programming notes
C programming notes
 
String in c programming
String in c programmingString in c programming
String in c programming
 
Data types in c++
Data types in c++Data types in c++
Data types in c++
 
Introduction to Basic C programming 01
Introduction to Basic C programming 01Introduction to Basic C programming 01
Introduction to Basic C programming 01
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
C by balaguruswami - e.balagurusamy
C   by balaguruswami - e.balagurusamyC   by balaguruswami - e.balagurusamy
C by balaguruswami - e.balagurusamy
 
Presentation on C++ Programming Language
Presentation on C++ Programming LanguagePresentation on C++ Programming Language
Presentation on C++ Programming Language
 
Input and output in C++
Input and output in C++Input and output in C++
Input and output in C++
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programming
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
 
Strings in c++
Strings in c++Strings in c++
Strings in c++
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial
 
358 33 powerpoint-slides_7-structures_chapter-7
358 33 powerpoint-slides_7-structures_chapter-7358 33 powerpoint-slides_7-structures_chapter-7
358 33 powerpoint-slides_7-structures_chapter-7
 
Data Types and Variables In C Programming
Data Types and Variables In C ProgrammingData Types and Variables In C Programming
Data Types and Variables In C Programming
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
 
CONDITIONAL STATEMENT IN C LANGUAGE
CONDITIONAL STATEMENT IN C LANGUAGECONDITIONAL STATEMENT IN C LANGUAGE
CONDITIONAL STATEMENT IN C LANGUAGE
 
Chapter1 c programming data types, variables and constants
Chapter1 c programming   data types, variables and constantsChapter1 c programming   data types, variables and constants
Chapter1 c programming data types, variables and constants
 
Tokens in C++
Tokens in C++Tokens in C++
Tokens in C++
 
Variables in C and C++ Language
Variables in C and C++ LanguageVariables in C and C++ Language
Variables in C and C++ Language
 
Programming in c
Programming in cProgramming in c
Programming in c
 

Similar to C Programming Guide for Beginners

Introduction to c
Introduction to cIntroduction to c
Introduction to cAjeet Kumar
 
plsql tutorialhub....
plsql tutorialhub....plsql tutorialhub....
plsql tutorialhub....Abhiram Vijay
 
Programming Language
Programming  LanguageProgramming  Language
Programming LanguageAdeel Hamid
 
Let's start with Java- Basic Concepts
Let's start with Java- Basic ConceptsLet's start with Java- Basic Concepts
Let's start with Java- Basic ConceptsAashish Jain
 
Java basics and java variables
Java basics and java variablesJava basics and java variables
Java basics and java variablesPushpendra Tyagi
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programmingRutvik Pensionwar
 
3963066 pl-sql-notes-only
3963066 pl-sql-notes-only3963066 pl-sql-notes-only
3963066 pl-sql-notes-onlyAshwin Kumar
 
Android webinar class_java_review
Android webinar class_java_reviewAndroid webinar class_java_review
Android webinar class_java_reviewEdureka!
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++Amresh Raj
 
C presentation! BATRA COMPUTER CENTRE
C presentation! BATRA  COMPUTER  CENTRE C presentation! BATRA  COMPUTER  CENTRE
C presentation! BATRA COMPUTER CENTRE jatin batra
 
Presentation on polymorphism in c++.pptx
Presentation on polymorphism in c++.pptxPresentation on polymorphism in c++.pptx
Presentation on polymorphism in c++.pptxvishwadeep15
 

Similar to C Programming Guide for Beginners (20)

Introduction to c
Introduction to cIntroduction to c
Introduction to c
 
4. plsql
4. plsql4. plsql
4. plsql
 
plsql tutorialhub....
plsql tutorialhub....plsql tutorialhub....
plsql tutorialhub....
 
Programming Language
Programming  LanguageProgramming  Language
Programming Language
 
Let's start with Java- Basic Concepts
Let's start with Java- Basic ConceptsLet's start with Java- Basic Concepts
Let's start with Java- Basic Concepts
 
final pl paper
final pl paperfinal pl paper
final pl paper
 
Programming in Arduino (Part 2)
Programming in Arduino  (Part 2)Programming in Arduino  (Part 2)
Programming in Arduino (Part 2)
 
Java basics and java variables
Java basics and java variablesJava basics and java variables
Java basics and java variables
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
Opps concept
Opps conceptOpps concept
Opps concept
 
ORACLE PL/SQL
ORACLE PL/SQLORACLE PL/SQL
ORACLE PL/SQL
 
3963066 pl-sql-notes-only
3963066 pl-sql-notes-only3963066 pl-sql-notes-only
3963066 pl-sql-notes-only
 
core java
core javacore java
core java
 
SQL / PL
SQL / PLSQL / PL
SQL / PL
 
Android webinar class_java_review
Android webinar class_java_reviewAndroid webinar class_java_review
Android webinar class_java_review
 
Oop java Concept
Oop java ConceptOop java Concept
Oop java Concept
 
Interoduction to c++
Interoduction to c++Interoduction to c++
Interoduction to c++
 
C presentation! BATRA COMPUTER CENTRE
C presentation! BATRA  COMPUTER  CENTRE C presentation! BATRA  COMPUTER  CENTRE
C presentation! BATRA COMPUTER CENTRE
 
Presentation on polymorphism in c++.pptx
Presentation on polymorphism in c++.pptxPresentation on polymorphism in c++.pptx
Presentation on polymorphism in c++.pptx
 
OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)
 

Recently uploaded

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Recently uploaded (20)

Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

C Programming Guide for Beginners

  • 1. SHALINI KUMARI 11ERWCSO74
  • 2. CONTENTS • INTRODUCTION • CHARACTERSTICS • STRUCTURE OF PROGRAM • DATA TYPE • IF ELSE • SWITCH CASE • LOOPING • ARRAY • POINTER • STRUCTURE • FUNCTION
  • 3. INTRODUCTION • C language is one of the most popular computer language today because it is a structured ,low level ,machine dependent language • It is developed by DENNIS RITCHIE in between 1969 and 1973 at bell labs.
  • 4. CHARECTERISTICS • There are a small, fixed number of keywords, including a full set of flow of control primitives : for, while, if, do while and switch. • More than one assignment may be performed in a single statement. • There are a large number of arithmetical and logical operators, such as +, +=, ++, &, ~, etc.
  • 5. STRUCTURE OF PROGRAM • Documentation Section //optional • Link section //optional • Defining section //optional • Global declaration section //optional • Main function section //Must { Declaration part Executable part. }
  • 6. • Sub program section //optional • Function 1 • Function 2 • Function n
  • 7. WHAT IS DATA TYPE ? A data type in a programming language is a set of data values having predefine characteristics. there are three classes of data types: Data Type Primitive derived user define
  • 8. TYPES OF DATA TYPE In c language compiler support five fundamental data type namely integer (int), character(char), floating point(float),double and void. Derived data types are array, structure, pointer, function. A user define data type is basically made by the user itself.
  • 9. IF ELSE STATEMENT The if statement is a powerful decision making statement . If ....else statement is a extention of the simple if statement . The general form is : if(test expression) { true-block statement(s) } else { false –block statement(s) } n
  • 10. SWITCH CASE It is a control statement that provides a facility for multiway branching from a particular point. syntax: switch(expression) { case labels: break; }
  • 11. LOOPING To execute a set of instructions repeatedly until a particular condition is being satisfied. LOOP For While Do while loop loop loop
  • 12. Syntax of loops For loop- For(intialization ; test condition ; increment) { Body of the loop } While loop- Do while loop- While(test condition) do { { Body of the loop body of the loop } }
  • 13. ARRAY An array is a collection of elements of the same data type. Syntax : data type arrayname[size]; Type of array 1 dimensional 2 dimensional Multi-dimensional
  • 14. POINTER C allow us to store the address of one variable in another variable. Syntax: data type *ptrname; STRUCTURE Binding of different type of data member in a single entity. Syntax: struct structurename { different datatype };
  • 15. FUNCTION A function definition specifies the name of the function, the types and number of parameters it expects to receive, and its return type. Types of functions Built in function User define function