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 (20)

Structure of a C program
Structure of a C programStructure of a C program
Structure of a C program
 
C Tokens
C TokensC Tokens
C Tokens
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programming
 
C++ Programming Language
C++ Programming Language C++ Programming Language
C++ Programming Language
 
C programming language tutorial
C programming language tutorial C programming language tutorial
C programming language tutorial
 
Enums in c
Enums in cEnums in c
Enums in c
 
arrays and pointers
arrays and pointersarrays and pointers
arrays and pointers
 
Function in C program
Function in C programFunction in C program
Function in C program
 
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
 
C programming
C programmingC programming
C programming
 
C++ string
C++ stringC++ string
C++ string
 
1. over view and history of c
1. over view and history of c1. over view and history of c
1. over view and history of c
 
C string
C stringC string
C string
 
C Language
C LanguageC Language
C Language
 
Introduction to c++ ppt
Introduction to c++ pptIntroduction to c++ ppt
Introduction to c++ ppt
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
 
Conditional statement c++
Conditional statement c++Conditional statement c++
Conditional statement c++
 
C programming notes.pdf
C programming notes.pdfC programming notes.pdf
C programming notes.pdf
 
Lecture 1- History of C Programming
Lecture 1- History of C Programming Lecture 1- History of C Programming
Lecture 1- History of C Programming
 
Character set of c
Character set of cCharacter set of c
Character set of 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

EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 

Recently uploaded (20)

EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 

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