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

Operator in c programming
Operator in c programmingOperator in c programming
Operator in c programmingManoj Tyagi
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programmingHarshita Yadav
 
Tokens expressionsin C++
Tokens expressionsin C++Tokens expressionsin C++
Tokens expressionsin C++HalaiHansaika
 
Control structures in C++ Programming Language
Control structures in C++ Programming LanguageControl structures in C++ Programming Language
Control structures in C++ Programming LanguageAhmad Idrees
 
Basic Structure of C Language and Related Term
Basic Structure of C Language  and Related TermBasic Structure of C Language  and Related Term
Basic Structure of C Language and Related TermMuhammadWaseem305
 
arrays and pointers
arrays and pointersarrays and pointers
arrays and pointersSamiksha Pun
 
C programming notes.pdf
C programming notes.pdfC programming notes.pdf
C programming notes.pdfAdiseshaK
 
What is keyword in c programming
What is keyword in c programmingWhat is keyword in c programming
What is keyword in c programmingRumman Ansari
 
History of Programming Language
History of Programming LanguageHistory of Programming Language
History of Programming Languagetahria123
 
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHIBCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHISowmya Jyothi
 

What's hot (20)

c-programming
c-programmingc-programming
c-programming
 
Operator in c programming
Operator in c programmingOperator in c programming
Operator in c programming
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programming
 
Tokens expressionsin C++
Tokens expressionsin C++Tokens expressionsin C++
Tokens expressionsin C++
 
Control structures in C++ Programming Language
Control structures in C++ Programming LanguageControl structures in C++ Programming Language
Control structures in C++ Programming Language
 
Character set of c
Character set of cCharacter set of c
Character set of c
 
Presentation on C programming language
Presentation on C programming languagePresentation on C programming language
Presentation on C programming language
 
Pointer in C++
Pointer in C++Pointer in C++
Pointer in C++
 
Recursion
RecursionRecursion
Recursion
 
Basic Structure of C Language and Related Term
Basic Structure of C Language  and Related TermBasic Structure of C Language  and Related Term
Basic Structure of C Language and Related Term
 
arrays and pointers
arrays and pointersarrays and pointers
arrays and pointers
 
C programming notes.pdf
C programming notes.pdfC programming notes.pdf
C programming notes.pdf
 
What is keyword in c programming
What is keyword in c programmingWhat is keyword in c programming
What is keyword in c programming
 
Pointer in c
Pointer in cPointer in c
Pointer in c
 
History of c
History of cHistory of c
History of c
 
Unit 2. Elements of C
Unit 2. Elements of CUnit 2. Elements of C
Unit 2. Elements of C
 
History of Programming Language
History of Programming LanguageHistory of Programming Language
History of Programming Language
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Data types in C
Data types in CData types in C
Data types in C
 
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHIBCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
BCA DATA STRUCTURES LINEAR ARRAYS MRS.SOWMYA JYOTHI
 

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

Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptxmary850239
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 

Recently uploaded (20)

Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx4.11.24 Mass Incarceration and the New Jim Crow.pptx
4.11.24 Mass Incarceration and the New Jim Crow.pptx
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.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