SlideShare a Scribd company logo
1 of 11
KEYWORDS IN C
LANGUAGE
NAME: JOYDEEP PAL
STUDENT CODE: BWU/BBT/18/036
SUBJECT: COMPUTER APPLICATION
REG: NO: 18013000519 of 2018-2019
ROLL NO: 18010310021
WHAT IS KEYWORD IN C
PROGRAMMING ?
• Keywords are defined, reserved word used in C programming language that have
a special meaning.
• These reserved words not be used as constants or variables or any other identifier
names.
For example: int weather;
Here, int is a keyword that indicates “weather” is a variable of type integer.
TYPES OF DATA
• C language supports 2 different type of data:
1. Primary data types: These are fundamental data types in C namely integer (int),
floating point (float), character (char).
2. Secondary/derived data types: Derived data types are nothing but primary data
types but a little twisted or grouped together like array, structure, union and pointer.
FORMAT SPECIFIERS
• Format specifiers are needed to access different data types :
• “Int” (%d): Integers is used for storing integers values (like: -1,0,1 etc.)
• “Float”(%f): Float is used for storing decimal numbers (like: 1.5,5.1,-2.1 etc.)
• “Char” (%c): Character is used to store single letter or special symbol (like: a,
B,$, #).
# include <stdio.h>
void main ()
{
int x=1;
 here, int, float, char
are the keywords.
float f= 5.5;
char c=$;
printf (“%d n”, x);
printf (“%f n”, f);
printf (“%c n”, c);
}
STORAGE CLASSES
• In addition to data type, storage class provides information about variables like:
1. Automatic (auto): Default storage class. It is a local variable with garbage value.
Example: int x; is same as auto int x;
2. Register: here local variables are stored in register and has garbage value.
example: register int x;
3. Static: It is also local variable but with 0 default value. Example: static int x;
4. External (extern): This is defines global variable with 0 default value. Example:
extern int x;
LOOPS IN C
• How it is works? “While” loop
‘while’ loop can be addressed as an entry
control loop. It is p completed in 3 steps:
Variable initialization (e.g. int x =0; )
condition (e.g. while (x<=10) ), Variable
increment or
decrement (e.g. x++ or x -- or x=x+2).
• After every execution of the loop body, condition is verified, and if it is found to be true the loop body is
executed again. When the condition check returns false, the loop body is not executed, and execution breaks out
SYNTAX OF WHILE LOOP
#include <stdio.h>
void main ()
{
int x;
x=1;
while (x<=10);
{
printf (“%d n”, x);
x++;  x= x+1, increment x by 1
}
}
SUMMARY
• C is a structured programming language developed by Dennis Ritchie in 1973
at Bell Laboratories. It is one of the most popular computer languages today
because of its structure, high-level abstraction, machine independent feature
etc.
• Keywords are preserved words that have special meaning in C language. The
meaning of C language keywords has already been described to the C compiler.
These meaning cannot be changed. Thus, keywords cannot be used as variable
names because that would try to change the existing meaning of the keyword,
which is not allowed There are total 32 keywords in C language. Examples: If, else,
for, void etc..
 I would like to thank respected faculties, RITESH SIR, SITIKANTHA SIR AND
OUR HOD Dr. PIJUSH MALLICK SIR for gave me this opportunity.
THANK YOU

More Related Content

What's hot

Decision Making Statement in C ppt
Decision Making Statement in C pptDecision Making Statement in C ppt
Decision Making Statement in C pptMANJUTRIPATHI7
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C ProgrammingQazi Shahzad Ali
 
Variables in C++, data types in c++
Variables in C++, data types in c++Variables in C++, data types in c++
Variables in C++, data types in c++Neeru Mittal
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILEDipta Saha
 
Character set in c
Character set in cCharacter set in c
Character set in cpolast
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming languagesanjay joshi
 
Functions in c language
Functions in c language Functions in c language
Functions in c language tanmaymodi4
 
What is token c programming
What is token c programmingWhat is token c programming
What is token c programmingRumman Ansari
 
Looping statements in C
Looping statements in CLooping statements in C
Looping statements in CJeya Lakshmi
 

What's hot (20)

Decision Making Statement in C ppt
Decision Making Statement in C pptDecision Making Statement in C ppt
Decision Making Statement in C ppt
 
Data Type in C Programming
Data Type in C ProgrammingData Type in C Programming
Data Type in C Programming
 
Variables in C++, data types in c++
Variables in C++, data types in c++Variables in C++, data types in c++
Variables in C++, data types in c++
 
Strings in C
Strings in CStrings in C
Strings in C
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
 
Loops c++
Loops c++Loops c++
Loops c++
 
C tokens
C tokensC tokens
C tokens
 
Control statements in c
Control statements in cControl statements in c
Control statements in c
 
Character set in c
Character set in cCharacter set in c
Character set in c
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Enums in c
Enums in cEnums in c
Enums in c
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
 
C Token’s
C Token’sC Token’s
C Token’s
 
C introduction by thooyavan
C introduction by  thooyavanC introduction by  thooyavan
C introduction by thooyavan
 
What is token c programming
What is token c programmingWhat is token c programming
What is token c programming
 
Structure in C
Structure in CStructure in C
Structure in C
 
User defined functions
User defined functionsUser defined functions
User defined functions
 
Function in c
Function in cFunction in c
Function in c
 
Looping statements in C
Looping statements in CLooping statements in C
Looping statements in C
 

Similar to Keywords in c language

presentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxpresentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxKrishanPalSingh39
 
C_Programming_Language_tutorial__Autosaved_.pptx
C_Programming_Language_tutorial__Autosaved_.pptxC_Programming_Language_tutorial__Autosaved_.pptx
C_Programming_Language_tutorial__Autosaved_.pptxLikhil181
 
presentation_data_types_and_operators_1513499834_241350.pptx
presentation_data_types_and_operators_1513499834_241350.pptxpresentation_data_types_and_operators_1513499834_241350.pptx
presentation_data_types_and_operators_1513499834_241350.pptxKrishanPalSingh39
 
C Language (All Concept)
C Language (All Concept)C Language (All Concept)
C Language (All Concept)sachindane
 
B.sc CSIT 2nd semester C++ Unit2
B.sc CSIT  2nd semester C++ Unit2B.sc CSIT  2nd semester C++ Unit2
B.sc CSIT 2nd semester C++ Unit2Tekendra Nath Yogi
 
2 EPT 162 Lecture 2
2 EPT 162 Lecture 22 EPT 162 Lecture 2
2 EPT 162 Lecture 2Don Dooley
 
Chapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingChapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingEric Chou
 
1-19 CPP Slides 2022-02-28 18_22_ 05.pdf
1-19 CPP Slides 2022-02-28 18_22_ 05.pdf1-19 CPP Slides 2022-02-28 18_22_ 05.pdf
1-19 CPP Slides 2022-02-28 18_22_ 05.pdfdhruvjs
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniquesvalarpink
 
Lamborghini Veneno Allegheri #2004@f**ck
Lamborghini Veneno Allegheri #2004@f**ckLamborghini Veneno Allegheri #2004@f**ck
Lamborghini Veneno Allegheri #2004@f**ckseidounsemel
 
C programming language tutorial
C programming language tutorialC programming language tutorial
C programming language tutorialSURBHI SAROHA
 
1. introduction to computer
1. introduction to computer1. introduction to computer
1. introduction to computerShankar Gangaju
 

Similar to Keywords in c language (20)

presentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptxpresentation_c_basics_1589366177_381682.pptx
presentation_c_basics_1589366177_381682.pptx
 
C intro
C introC intro
C intro
 
C_Programming_Language_tutorial__Autosaved_.pptx
C_Programming_Language_tutorial__Autosaved_.pptxC_Programming_Language_tutorial__Autosaved_.pptx
C_Programming_Language_tutorial__Autosaved_.pptx
 
C programming session3
C programming  session3C programming  session3
C programming session3
 
C programming session3
C programming  session3C programming  session3
C programming session3
 
presentation_data_types_and_operators_1513499834_241350.pptx
presentation_data_types_and_operators_1513499834_241350.pptxpresentation_data_types_and_operators_1513499834_241350.pptx
presentation_data_types_and_operators_1513499834_241350.pptx
 
Introduction to C
Introduction to CIntroduction to C
Introduction to C
 
C Language (All Concept)
C Language (All Concept)C Language (All Concept)
C Language (All Concept)
 
B.sc CSIT 2nd semester C++ Unit2
B.sc CSIT  2nd semester C++ Unit2B.sc CSIT  2nd semester C++ Unit2
B.sc CSIT 2nd semester C++ Unit2
 
2 EPT 162 Lecture 2
2 EPT 162 Lecture 22 EPT 162 Lecture 2
2 EPT 162 Lecture 2
 
Chapter 2: Elementary Programming
Chapter 2: Elementary ProgrammingChapter 2: Elementary Programming
Chapter 2: Elementary Programming
 
1-19 CPP Slides 2022-02-28 18_22_ 05.pdf
1-19 CPP Slides 2022-02-28 18_22_ 05.pdf1-19 CPP Slides 2022-02-28 18_22_ 05.pdf
1-19 CPP Slides 2022-02-28 18_22_ 05.pdf
 
Introduction%20C.pptx
Introduction%20C.pptxIntroduction%20C.pptx
Introduction%20C.pptx
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
 
C programming
C programming C programming
C programming
 
Lamborghini Veneno Allegheri #2004@f**ck
Lamborghini Veneno Allegheri #2004@f**ckLamborghini Veneno Allegheri #2004@f**ck
Lamborghini Veneno Allegheri #2004@f**ck
 
C programming language tutorial
C programming language tutorialC programming language tutorial
C programming language tutorial
 
Pc module1
Pc module1Pc module1
Pc module1
 
C-PPT.pdf
C-PPT.pdfC-PPT.pdf
C-PPT.pdf
 
1. introduction to computer
1. introduction to computer1. introduction to computer
1. introduction to computer
 

More from Joydeep16

Electron microscope
Electron microscopeElectron microscope
Electron microscopeJoydeep16
 
Restriction enzymes
Restriction enzymesRestriction enzymes
Restriction enzymesJoydeep16
 
Transcription process slides
Transcription process slidesTranscription process slides
Transcription process slidesJoydeep16
 
Allee effect
Allee effectAllee effect
Allee effectJoydeep16
 
Production of ethanol by microbes (036)
Production of ethanol by microbes (036)Production of ethanol by microbes (036)
Production of ethanol by microbes (036)Joydeep16
 
Shouthern blotting (joydeep pal)
Shouthern blotting (joydeep pal)Shouthern blotting (joydeep pal)
Shouthern blotting (joydeep pal)Joydeep16
 
Role of ensembl in genome browsing
Role of ensembl in genome browsingRole of ensembl in genome browsing
Role of ensembl in genome browsingJoydeep16
 
Phytoremediation
PhytoremediationPhytoremediation
PhytoremediationJoydeep16
 

More from Joydeep16 (8)

Electron microscope
Electron microscopeElectron microscope
Electron microscope
 
Restriction enzymes
Restriction enzymesRestriction enzymes
Restriction enzymes
 
Transcription process slides
Transcription process slidesTranscription process slides
Transcription process slides
 
Allee effect
Allee effectAllee effect
Allee effect
 
Production of ethanol by microbes (036)
Production of ethanol by microbes (036)Production of ethanol by microbes (036)
Production of ethanol by microbes (036)
 
Shouthern blotting (joydeep pal)
Shouthern blotting (joydeep pal)Shouthern blotting (joydeep pal)
Shouthern blotting (joydeep pal)
 
Role of ensembl in genome browsing
Role of ensembl in genome browsingRole of ensembl in genome browsing
Role of ensembl in genome browsing
 
Phytoremediation
PhytoremediationPhytoremediation
Phytoremediation
 

Recently uploaded

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 

Recently uploaded (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Keywords in c language

  • 1. KEYWORDS IN C LANGUAGE NAME: JOYDEEP PAL STUDENT CODE: BWU/BBT/18/036 SUBJECT: COMPUTER APPLICATION REG: NO: 18013000519 of 2018-2019 ROLL NO: 18010310021
  • 2. WHAT IS KEYWORD IN C PROGRAMMING ? • Keywords are defined, reserved word used in C programming language that have a special meaning. • These reserved words not be used as constants or variables or any other identifier names. For example: int weather; Here, int is a keyword that indicates “weather” is a variable of type integer.
  • 3. TYPES OF DATA • C language supports 2 different type of data: 1. Primary data types: These are fundamental data types in C namely integer (int), floating point (float), character (char). 2. Secondary/derived data types: Derived data types are nothing but primary data types but a little twisted or grouped together like array, structure, union and pointer.
  • 4. FORMAT SPECIFIERS • Format specifiers are needed to access different data types : • “Int” (%d): Integers is used for storing integers values (like: -1,0,1 etc.) • “Float”(%f): Float is used for storing decimal numbers (like: 1.5,5.1,-2.1 etc.) • “Char” (%c): Character is used to store single letter or special symbol (like: a, B,$, #).
  • 5. # include <stdio.h> void main () { int x=1; here, int, float, char are the keywords. float f= 5.5; char c=$; printf (“%d n”, x); printf (“%f n”, f); printf (“%c n”, c); }
  • 6. STORAGE CLASSES • In addition to data type, storage class provides information about variables like: 1. Automatic (auto): Default storage class. It is a local variable with garbage value. Example: int x; is same as auto int x; 2. Register: here local variables are stored in register and has garbage value. example: register int x; 3. Static: It is also local variable but with 0 default value. Example: static int x; 4. External (extern): This is defines global variable with 0 default value. Example: extern int x;
  • 7.
  • 8. LOOPS IN C • How it is works? “While” loop ‘while’ loop can be addressed as an entry control loop. It is p completed in 3 steps: Variable initialization (e.g. int x =0; ) condition (e.g. while (x<=10) ), Variable increment or decrement (e.g. x++ or x -- or x=x+2). • After every execution of the loop body, condition is verified, and if it is found to be true the loop body is executed again. When the condition check returns false, the loop body is not executed, and execution breaks out
  • 9. SYNTAX OF WHILE LOOP #include <stdio.h> void main () { int x; x=1; while (x<=10); { printf (“%d n”, x); x++; x= x+1, increment x by 1 } }
  • 10. SUMMARY • C is a structured programming language developed by Dennis Ritchie in 1973 at Bell Laboratories. It is one of the most popular computer languages today because of its structure, high-level abstraction, machine independent feature etc. • Keywords are preserved words that have special meaning in C language. The meaning of C language keywords has already been described to the C compiler. These meaning cannot be changed. Thus, keywords cannot be used as variable names because that would try to change the existing meaning of the keyword, which is not allowed There are total 32 keywords in C language. Examples: If, else, for, void etc..
  • 11.  I would like to thank respected faculties, RITESH SIR, SITIKANTHA SIR AND OUR HOD Dr. PIJUSH MALLICK SIR for gave me this opportunity. THANK YOU