SlideShare a Scribd company logo
1 of 12
Presented by Nuzhat Memon
Chapter 10
Introduction to C Language
(PART 2 C Character set & C Tokens)
Presented by: Nuzhat Memon
Presented by Nuzhat Memon
Agenda
2
Alphabet
--------------
Digits
--------------
White spaces
--------------
Special Symbols
keywords
--------------
identifiers
--------------
variables
--------------
Constants
--------------
Strings
--------------
Operators
--------------
Special characters
Instructions Program
character set
C Token
Alphabets words sentences
Presented by Nuzhat Memon
C Character Set
Each language has its
alphabets which can be used to
form words and sentences.
So does c language has its own
character set.
.
3
Presented by Nuzhat Memon 4
Blank space
Horizontal tab
Vertical tab
New line
Form feed
0 1 2 3 4 5 6 7 8 9
A …Z
a…z
C Character Set
Letters Digits White Spaces Special Characters
Comma ,
Semi colon ;
Colon :
Quotation mark “
Period .
Apostrophe ′
Question mark ?
Ampersand &
At the rate @
Dollar $
Hash sign #
Tilde ~
Underscore _
Exclamation !
Greater than >
Less than <
Equal to =
Plus +
Minus -
Percent %
Asterisk *
Forward slash /
Backward slash 
Vertical bar |
Caret ^
Parenthesis ()
Curly braces {}
Square bracket []
Presented by Nuzhat Memon
C Tokens
Tokens are Smallest
individual units in a C
program.
C is basically identifies six
types of token.
.
5
Presented by Nuzhat Memon 6
C Tokens
Keyword Identifier Constant String Operator Special
character
Constants are
values that remain
unchanged during
the program
execution
Example: 3.14, 10,
-2.5
# <> {} ()
[] , . ;
+ - * / % > < =
Predefined or
reserved words
Example: float,
int, char, if …
User defined names
given to variable,
function or
symbolic constants
Example: pi, diff,
main, interest …
Sequence of
characters enclosed
in double quotes “”
which end with
null character ‘0’
“hello” 
{‘H’, ’e’, ’l’, ’l’, ‘o’}
#include<stdio.h>
void main()
{
int qty=10;
printf(“hello”);
}
# | include | < | stdio | . | h | > |
void | main | ( | ) |
{ |
int | qty | = | 10 | ; |
printf | ( | “hello” | ) | ; |
} |
Presented by Nuzhat Memon
KeyworDS
7
 Each Keyword has a predefined meaning
 ANSI C standard supports 32 predefined words
auto double int struct
break else long switch
case enum register typedef
char extern return union
const float short unsigned
continue f0r signed void
default goto sizeof volatile
do if static while
Presented by Nuzhat Memon 8
IDENTIFIER
 User defined names given by user to variable,
function or symbolic constant for the purpose of
identification
 A word that a user can construct by making use
of C character set is known as identifier
 It consists of set of letters(totalcost),
digits(totalcost1), underscore(total_cost)
 Example: pi, qty, total, principal, interest, main,
difference
Rule 1: The First character of
variable name must be a letter or
underscore (totalcost, _totalcost)
Rules 2: No Special Character
Variable name consists of
• Letter (a-z, A-Z)
• Digit (0 -9)
• Underscore (_)
Rule 3: No Keywords - Keyword
cannot be used as a variable name.
Rule 4: Maximum length of variable
name as per ANSI standards is 31
characters.
Rule 5: Case sensitive .. Total, total,
TOTAL all are different 10
Presented by Nuzhat Memon 9
VARIABLE
 A variable is basically a data name that is used to store values.
 The data within the memory space is referred by a name known as variable
 Unlike constants that remain unchanged during the program execution, a variable can
vary and take up several values during the program execution.
Cell Address/Memory location
10
name
int a=10;
variable
value
10
a
a=a+1;
11
Presented by Nuzhat Memon
Exercise
10
Valid (Yes)
Invalid (No)
Reason
Total Value No Blank space is not allowed
total&value No Special character is not allowed
total_value Yes Underscore is allowed
_file Yes First character can be underscore
10marks No First character has to be letter or underscore
mark100 Yes As first character is character so it is allowed
char No Use of reserved keyword not allowed
Double Yes
Identifiers are case sensitive, so this is not same as
keyword double
INTEREST Yes Capital and small letters are part of C character set
Presented by Nuzhat Memon 11
Constants
Single
Character
String
Base 10
(0-9)
75, -99
Decimal Hexadecimal
Octal
2,000
10.55
abcd
Base 16
0x or 0X
(0-9, A-F)
0X75, 0xA
A B C D E F
10 11 12 13 14 15
Base 8
(0-7)
075, -63
096
Integer
Whole numbers
Real
Decimal numbers with
fractional part ‘a’, ‘#’, ‘3’
sequence of
characters
enclosed in “ “
“hello”, “a”
41.5
25.75
0.2575 e 2
Mantissa exponent
Escape character
a : Audible alert
b : Backspace
f : Form feed
n : New line
r : Carriage return
t : Horizontal tab
v: Vertical tab
’ : Single quote
” : Double quote
? : Question mark
 : Backslash
0: Null
#define PI 3.14
#define MAX 10
Numeric Special
Character
Character Symbolic
Constant
‘a’ ‘b’ ‘c’ …. ‘z’
97 98 99 … 122
‘A’ ‘B’ ‘C’ … ‘Z’
65 66 67 … 90
0 1 2 … 3
48 49 50 … 57
Presented by Nuzhat Memon
Thanks for Watching
12
You can find me at:
nuzhatmemon.com
nuzhat.memon@gmail.com

More Related Content

What's hot

C101 – Intro to Programming with C
C101 – Intro to Programming with CC101 – Intro to Programming with C
C101 – Intro to Programming with Cgpsoft_sk
 
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
MANAGING INPUT AND OUTPUT OPERATIONS IN C    MRS.SOWMYA JYOTHI.pdfMANAGING INPUT AND OUTPUT OPERATIONS IN C    MRS.SOWMYA JYOTHI.pdf
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdfSowmyaJyothi3
 
C Programming basics
C Programming basicsC Programming basics
C Programming basicsJitin Pillai
 
What is keyword in c programming
What is keyword in c programmingWhat is keyword in c programming
What is keyword in c programmingRumman Ansari
 
Types of pointer in C
Types of pointer in CTypes of pointer in C
Types of pointer in Crgnikate
 
Basic C Programming language
Basic C Programming languageBasic C Programming language
Basic C Programming languageAbhishek Soni
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGAbhishek Dwivedi
 
Lesson 02 python keywords and identifiers
Lesson 02   python keywords and identifiersLesson 02   python keywords and identifiers
Lesson 02 python keywords and identifiersNilimesh Halder
 

What's hot (19)

C101 – Intro to Programming with C
C101 – Intro to Programming with CC101 – Intro to Programming with C
C101 – Intro to Programming with C
 
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
MANAGING INPUT AND OUTPUT OPERATIONS IN C    MRS.SOWMYA JYOTHI.pdfMANAGING INPUT AND OUTPUT OPERATIONS IN C    MRS.SOWMYA JYOTHI.pdf
MANAGING INPUT AND OUTPUT OPERATIONS IN C MRS.SOWMYA JYOTHI.pdf
 
Introduction to c
Introduction to cIntroduction to c
Introduction to c
 
Basics of c
Basics of cBasics of c
Basics of c
 
C language basics
C language basicsC language basics
C language basics
 
Chaptr 1
Chaptr 1Chaptr 1
Chaptr 1
 
C language basics
C language basicsC language basics
C language basics
 
C loops
C loopsC loops
C loops
 
C Programming basics
C Programming basicsC Programming basics
C Programming basics
 
What is keyword in c programming
What is keyword in c programmingWhat is keyword in c programming
What is keyword in c programming
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Data type in c
Data type in cData type in c
Data type in c
 
Structures-2
Structures-2Structures-2
Structures-2
 
Types of pointer in C
Types of pointer in CTypes of pointer in C
Types of pointer in C
 
Basic C Programming language
Basic C Programming languageBasic C Programming language
Basic C Programming language
 
INTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMINGINTRODUCTION TO C PROGRAMMING
INTRODUCTION TO C PROGRAMMING
 
Lesson 02 python keywords and identifiers
Lesson 02   python keywords and identifiersLesson 02   python keywords and identifiers
Lesson 02 python keywords and identifiers
 
Constants variables data_types
Constants variables data_typesConstants variables data_types
Constants variables data_types
 
Pengaturcaraan asas
Pengaturcaraan asasPengaturcaraan asas
Pengaturcaraan asas
 

Similar to Std 10 computer chapter 10 introduction to c language (part2)

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 languageRai University
 
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 languageRai University
 
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 languageRai University
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c languageRai University
 
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 languageRai University
 
Msc prev completed
Msc prev completedMsc prev completed
Msc prev completedmshoaib15
 
Msc prev updated
Msc prev updatedMsc prev updated
Msc prev updatedmshoaib15
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C ProgrammingMOHAMAD NOH AHMAD
 
Unit 4 Foc
Unit 4 FocUnit 4 Foc
Unit 4 FocJAYA
 
C presentation book
C presentation bookC presentation book
C presentation bookkrunal1210
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorialMohit Saini
 

Similar to Std 10 computer chapter 10 introduction to c language (part2) (20)

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
 
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
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
 
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
 
Msc prev completed
Msc prev completedMsc prev completed
Msc prev completed
 
Msc prev updated
Msc prev updatedMsc prev updated
Msc prev updated
 
Cnotes
CnotesCnotes
Cnotes
 
C PADHLO FRANDS.pdf
C PADHLO FRANDS.pdfC PADHLO FRANDS.pdf
C PADHLO FRANDS.pdf
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
Unit 4 Foc
Unit 4 FocUnit 4 Foc
Unit 4 Foc
 
C presentation book
C presentation bookC presentation book
C presentation book
 
C Tutorial
C TutorialC Tutorial
C Tutorial
 
Basics of c
Basics of cBasics of c
Basics of c
 
U2.ppt
U2.pptU2.ppt
U2.ppt
 
U2.ppt
U2.pptU2.ppt
U2.ppt
 
Basics of C.ppt
Basics of C.pptBasics of C.ppt
Basics of C.ppt
 
Unit1 C
Unit1 CUnit1 C
Unit1 C
 
Unit1 C
Unit1 CUnit1 C
Unit1 C
 
C programming tutorial
C programming tutorialC programming tutorial
C programming tutorial
 

More from Nuzhat Memon

Std 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsStd 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsNuzhat Memon
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsStd 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsNuzhat Memon
 
Std 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQsStd 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQsNuzhat Memon
 
Std 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQsStd 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQsNuzhat Memon
 
Std 12 Computer Chapter 6 object oriented concept important mcqs
Std 12 Computer Chapter 6 object oriented concept important mcqsStd 12 Computer Chapter 6 object oriented concept important mcqs
Std 12 Computer Chapter 6 object oriented concept important mcqsNuzhat Memon
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)Nuzhat Memon
 
Std 12 computer chapter 6 object oriented concepts (part 2)
Std 12 computer chapter 6 object oriented concepts (part 2)Std 12 computer chapter 6 object oriented concepts (part 2)
Std 12 computer chapter 6 object oriented concepts (part 2)Nuzhat Memon
 
Std 12 computer java basics part 3 control structure
Std 12 computer java basics part 3 control structureStd 12 computer java basics part 3 control structure
Std 12 computer java basics part 3 control structureNuzhat Memon
 
Std 12 Computer Chapter 7 Java Basics (Part 2)
Std 12 Computer Chapter 7 Java Basics (Part 2)Std 12 Computer Chapter 7 Java Basics (Part 2)
Std 12 Computer Chapter 7 Java Basics (Part 2)Nuzhat Memon
 
Std 12 Computer Chapter 7 Java Basics (Part 1)
Std 12 Computer Chapter 7 Java Basics (Part 1)Std 12 Computer Chapter 7 Java Basics (Part 1)
Std 12 Computer Chapter 7 Java Basics (Part 1)Nuzhat Memon
 
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
Std 12 Computer Chapter 13 other useful free tools and services important MCQsStd 12 Computer Chapter 13 other useful free tools and services important MCQs
Std 12 Computer Chapter 13 other useful free tools and services important MCQsNuzhat Memon
 
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsStd 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsNuzhat Memon
 
Std 12 computer chapter 8 classes and object in java (part 2)
Std 12 computer chapter 8 classes and object in java (part 2)Std 12 computer chapter 8 classes and object in java (part 2)
Std 12 computer chapter 8 classes and object in java (part 2)Nuzhat Memon
 
Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)Nuzhat Memon
 
Std 10 computer chapter 9 Problems and Problem Solving
Std 10 computer chapter 9 Problems and Problem SolvingStd 10 computer chapter 9 Problems and Problem Solving
Std 10 computer chapter 9 Problems and Problem SolvingNuzhat Memon
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...Nuzhat Memon
 
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)Nuzhat Memon
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1  Basics Opera...Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1  Basics Opera...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
Std 11 Computer Chapter 4 Introduction to Layers  (Part 3 Solving Textual Exe...Std 11 Computer Chapter 4 Introduction to Layers  (Part 3 Solving Textual Exe...
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...Nuzhat Memon
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...Nuzhat Memon
 

More from Nuzhat Memon (20)

Std 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQsStd 10 chapter 11 data type, expression and operators important MCQs
Std 10 chapter 11 data type, expression and operators important MCQs
 
Std 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQsStd 10 Chapter 10 Introduction to C Language Important MCQs
Std 10 Chapter 10 Introduction to C Language Important MCQs
 
Std 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQsStd 12 chapter 7 Java Basics Important MCQs
Std 12 chapter 7 Java Basics Important MCQs
 
Std 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQsStd 12 computer chapter 8 classes and objects in java important MCQs
Std 12 computer chapter 8 classes and objects in java important MCQs
 
Std 12 Computer Chapter 6 object oriented concept important mcqs
Std 12 Computer Chapter 6 object oriented concept important mcqsStd 12 Computer Chapter 6 object oriented concept important mcqs
Std 12 Computer Chapter 6 object oriented concept important mcqs
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)
 
Std 12 computer chapter 6 object oriented concepts (part 2)
Std 12 computer chapter 6 object oriented concepts (part 2)Std 12 computer chapter 6 object oriented concepts (part 2)
Std 12 computer chapter 6 object oriented concepts (part 2)
 
Std 12 computer java basics part 3 control structure
Std 12 computer java basics part 3 control structureStd 12 computer java basics part 3 control structure
Std 12 computer java basics part 3 control structure
 
Std 12 Computer Chapter 7 Java Basics (Part 2)
Std 12 Computer Chapter 7 Java Basics (Part 2)Std 12 Computer Chapter 7 Java Basics (Part 2)
Std 12 Computer Chapter 7 Java Basics (Part 2)
 
Std 12 Computer Chapter 7 Java Basics (Part 1)
Std 12 Computer Chapter 7 Java Basics (Part 1)Std 12 Computer Chapter 7 Java Basics (Part 1)
Std 12 Computer Chapter 7 Java Basics (Part 1)
 
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
Std 12 Computer Chapter 13 other useful free tools and services important MCQsStd 12 Computer Chapter 13 other useful free tools and services important MCQs
Std 12 Computer Chapter 13 other useful free tools and services important MCQs
 
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsStd 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
 
Std 12 computer chapter 8 classes and object in java (part 2)
Std 12 computer chapter 8 classes and object in java (part 2)Std 12 computer chapter 8 classes and object in java (part 2)
Std 12 computer chapter 8 classes and object in java (part 2)
 
Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)Std 10 computer chapter 10 introduction to c language (part1)
Std 10 computer chapter 10 introduction to c language (part1)
 
Std 10 computer chapter 9 Problems and Problem Solving
Std 10 computer chapter 9 Problems and Problem SolvingStd 10 computer chapter 9 Problems and Problem Solving
Std 10 computer chapter 9 Problems and Problem Solving
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 3: Masking to R...
 
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
Chapter 5 Using Pictures in Synfig (Practical 2: Masking to hide area in synfig)
 
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1  Basics Opera...Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1  Basics Opera...
Std 11 Computer Chapter 5 Using Pictures in Synfig (Practical 1 Basics Opera...
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
Std 11 Computer Chapter 4 Introduction to Layers  (Part 3 Solving Textual Exe...Std 11 Computer Chapter 4 Introduction to Layers  (Part 3 Solving Textual Exe...
Std 11 Computer Chapter 4 Introduction to Layers (Part 3 Solving Textual Exe...
 
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
Std 11 Computer Chapter 4 Introduction to Layers (Part 2 Practical :Rotation ...
 

Recently uploaded

Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
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
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
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
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
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
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
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
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
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
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.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
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
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
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
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)
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
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
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
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
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

Std 10 computer chapter 10 introduction to c language (part2)

  • 1. Presented by Nuzhat Memon Chapter 10 Introduction to C Language (PART 2 C Character set & C Tokens) Presented by: Nuzhat Memon
  • 2. Presented by Nuzhat Memon Agenda 2 Alphabet -------------- Digits -------------- White spaces -------------- Special Symbols keywords -------------- identifiers -------------- variables -------------- Constants -------------- Strings -------------- Operators -------------- Special characters Instructions Program character set C Token Alphabets words sentences
  • 3. Presented by Nuzhat Memon C Character Set Each language has its alphabets which can be used to form words and sentences. So does c language has its own character set. . 3
  • 4. Presented by Nuzhat Memon 4 Blank space Horizontal tab Vertical tab New line Form feed 0 1 2 3 4 5 6 7 8 9 A …Z a…z C Character Set Letters Digits White Spaces Special Characters Comma , Semi colon ; Colon : Quotation mark “ Period . Apostrophe ′ Question mark ? Ampersand & At the rate @ Dollar $ Hash sign # Tilde ~ Underscore _ Exclamation ! Greater than > Less than < Equal to = Plus + Minus - Percent % Asterisk * Forward slash / Backward slash Vertical bar | Caret ^ Parenthesis () Curly braces {} Square bracket []
  • 5. Presented by Nuzhat Memon C Tokens Tokens are Smallest individual units in a C program. C is basically identifies six types of token. . 5
  • 6. Presented by Nuzhat Memon 6 C Tokens Keyword Identifier Constant String Operator Special character Constants are values that remain unchanged during the program execution Example: 3.14, 10, -2.5 # <> {} () [] , . ; + - * / % > < = Predefined or reserved words Example: float, int, char, if … User defined names given to variable, function or symbolic constants Example: pi, diff, main, interest … Sequence of characters enclosed in double quotes “” which end with null character ‘0’ “hello”  {‘H’, ’e’, ’l’, ’l’, ‘o’} #include<stdio.h> void main() { int qty=10; printf(“hello”); } # | include | < | stdio | . | h | > | void | main | ( | ) | { | int | qty | = | 10 | ; | printf | ( | “hello” | ) | ; | } |
  • 7. Presented by Nuzhat Memon KeyworDS 7  Each Keyword has a predefined meaning  ANSI C standard supports 32 predefined words auto double int struct break else long switch case enum register typedef char extern return union const float short unsigned continue f0r signed void default goto sizeof volatile do if static while
  • 8. Presented by Nuzhat Memon 8 IDENTIFIER  User defined names given by user to variable, function or symbolic constant for the purpose of identification  A word that a user can construct by making use of C character set is known as identifier  It consists of set of letters(totalcost), digits(totalcost1), underscore(total_cost)  Example: pi, qty, total, principal, interest, main, difference Rule 1: The First character of variable name must be a letter or underscore (totalcost, _totalcost) Rules 2: No Special Character Variable name consists of • Letter (a-z, A-Z) • Digit (0 -9) • Underscore (_) Rule 3: No Keywords - Keyword cannot be used as a variable name. Rule 4: Maximum length of variable name as per ANSI standards is 31 characters. Rule 5: Case sensitive .. Total, total, TOTAL all are different 10
  • 9. Presented by Nuzhat Memon 9 VARIABLE  A variable is basically a data name that is used to store values.  The data within the memory space is referred by a name known as variable  Unlike constants that remain unchanged during the program execution, a variable can vary and take up several values during the program execution. Cell Address/Memory location 10 name int a=10; variable value 10 a a=a+1; 11
  • 10. Presented by Nuzhat Memon Exercise 10 Valid (Yes) Invalid (No) Reason Total Value No Blank space is not allowed total&value No Special character is not allowed total_value Yes Underscore is allowed _file Yes First character can be underscore 10marks No First character has to be letter or underscore mark100 Yes As first character is character so it is allowed char No Use of reserved keyword not allowed Double Yes Identifiers are case sensitive, so this is not same as keyword double INTEREST Yes Capital and small letters are part of C character set
  • 11. Presented by Nuzhat Memon 11 Constants Single Character String Base 10 (0-9) 75, -99 Decimal Hexadecimal Octal 2,000 10.55 abcd Base 16 0x or 0X (0-9, A-F) 0X75, 0xA A B C D E F 10 11 12 13 14 15 Base 8 (0-7) 075, -63 096 Integer Whole numbers Real Decimal numbers with fractional part ‘a’, ‘#’, ‘3’ sequence of characters enclosed in “ “ “hello”, “a” 41.5 25.75 0.2575 e 2 Mantissa exponent Escape character a : Audible alert b : Backspace f : Form feed n : New line r : Carriage return t : Horizontal tab v: Vertical tab ’ : Single quote ” : Double quote ? : Question mark : Backslash 0: Null #define PI 3.14 #define MAX 10 Numeric Special Character Character Symbolic Constant ‘a’ ‘b’ ‘c’ …. ‘z’ 97 98 99 … 122 ‘A’ ‘B’ ‘C’ … ‘Z’ 65 66 67 … 90 0 1 2 … 3 48 49 50 … 57
  • 12. Presented by Nuzhat Memon Thanks for Watching 12 You can find me at: nuzhatmemon.com nuzhat.memon@gmail.com