Storage Class
Programming Techniques using C
Under the guidance of
Mrs. Sushma Mishra
Submitted by:
Joyce Aiman Parhi
BCA 2nd Semester
Roll no. 20
What is a Storage Class?
Each variable declared in C contains not only a datatype but
a storage class too. If the programmer does not write it explicitly, the C
preprocessor expands the line of code and adds the default storage class
keyword i.e. ‘auto’ to the statement.
Types
● Automatic
● Register
● Static
● External
Features
● Storage
● Life
● Scope
● Default Value
extern
Storage Class
int
Datatype
i
Variable Name
=
Assignment Operator
20
Value
Syntax
Example’s
auto
#include<stdio.h>
#include<conio.h>
void main()
{
auto int i; /* default storage class i.e.
auto */
int a,b; /* Same as writing ‘auto int’
a */
for(i=0;i<100;i++)
{
printf("Hellon");
}
getch();
}
register
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b; /* */
register int i; /* */
for(i=0;i<100;i++)
{
printf("Hellon");
}
getch();
}
static
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b; /* */
static int i; /* */
for(i=0;i<100;i++)
{
printf("Hellon");
}
getch();
}
extern
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b; /* */
extern int i; /* */
for(i=0;i<100;i++)
{
printf("Hellon");
}
getch();
}
Thank You

More Related Content

PPT
C++ Introduction
PPTX
Input output statement
PDF
CP Handout#8
PDF
PPTX
Working with IDE
DOCX
C programming Lab 1
PDF
CP Handout#5
PPT
Functions & Procedures [7]
C++ Introduction
Input output statement
CP Handout#8
Working with IDE
C programming Lab 1
CP Handout#5
Functions & Procedures [7]

What's hot (19)

PPTX
3. user input and some basic problem
PPTX
2. introduction of a c program
PPTX
Functions
PDF
Lecture 8 increment_and_decrement_operators
PDF
Arithmetic operator
DOCX
Ppl home assignment_unit2
PPT
DOCX
C quiz
PPT
C and C++ Industrial Training Jalandhar
DOCX
Answers+of+C+sample+exam.docx
PDF
The Differences Between C and C++
PPTX
Lecture 1
PPT
2. data, operators, io
PPSX
Concepts of C [Module 2]
PDF
Arithmetic instructions
PPTX
Write a program that accepts percentage from the user and displays its grade ...
PDF
C programming for Graphs
PPTX
Chapter 3 dti2143
PDF
functional programming & c++
3. user input and some basic problem
2. introduction of a c program
Functions
Lecture 8 increment_and_decrement_operators
Arithmetic operator
Ppl home assignment_unit2
C quiz
C and C++ Industrial Training Jalandhar
Answers+of+C+sample+exam.docx
The Differences Between C and C++
Lecture 1
2. data, operators, io
Concepts of C [Module 2]
Arithmetic instructions
Write a program that accepts percentage from the user and displays its grade ...
C programming for Graphs
Chapter 3 dti2143
functional programming & c++
Ad

Similar to Storage Class (20)

PPT
storage class
PPT
Lecture 13 - Storage Classes
PDF
C storage classes
DOCX
Storage class
PPTX
Storage classes in C
PPTX
Storage classes
PPT
cs8251 unit 1 ppt
PPTX
Storage class in c
PPT
STORAGE CLASSES
PDF
Storage classes arrays & functions in C Language
PPTX
Storage classes
PDF
Understanding Storage Classes in C.pdf
PPTX
11 lec 11 storage class
PPTX
STORAGE CLASS.pptx
PDF
Storage class
PDF
Arrays 2 Dimensional Unit 2 Part 1.pdf
PPT
Storage classes
PPTX
C language updated
PPTX
Storage class in C Language
PPTX
C language
storage class
Lecture 13 - Storage Classes
C storage classes
Storage class
Storage classes in C
Storage classes
cs8251 unit 1 ppt
Storage class in c
STORAGE CLASSES
Storage classes arrays & functions in C Language
Storage classes
Understanding Storage Classes in C.pdf
11 lec 11 storage class
STORAGE CLASS.pptx
Storage class
Arrays 2 Dimensional Unit 2 Part 1.pdf
Storage classes
C language updated
Storage class in C Language
C language
Ad

Recently uploaded (20)

PDF
Workplace Software and Skills - OpenStax
PDF
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
PDF
AI Guide for Business Growth - Arna Softech
PPTX
most interesting chapter in the world ppt
PDF
Practical Indispensable Project Management Tips for Delivering Successful Exp...
PDF
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
PPTX
Trending Python Topics for Data Visualization in 2025
PPTX
GSA Content Generator Crack (2025 Latest)
PPTX
MLforCyber_MLDataSetsandFeatures_Presentation.pptx
PDF
Visual explanation of Dijkstra's Algorithm using Python
PPTX
4Seller: The All-in-One Multi-Channel E-Commerce Management Platform for Glob...
PDF
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
PDF
Microsoft Office 365 Crack Download Free
PDF
E-Commerce Website Development Companyin india
PDF
iTop VPN Crack Latest Version Full Key 2025
PDF
Wondershare Recoverit Full Crack New Version (Latest 2025)
PPTX
Full-Stack Developer Courses That Actually Land You Jobs
DOCX
How to Use SharePoint as an ISO-Compliant Document Management System
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
DOCX
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx
Workplace Software and Skills - OpenStax
Introduction to Ragic - #1 No Code Tool For Digitalizing Your Business Proces...
AI Guide for Business Growth - Arna Softech
most interesting chapter in the world ppt
Practical Indispensable Project Management Tips for Delivering Successful Exp...
AI/ML Infra Meetup | Beyond S3's Basics: Architecting for AI-Native Data Access
Trending Python Topics for Data Visualization in 2025
GSA Content Generator Crack (2025 Latest)
MLforCyber_MLDataSetsandFeatures_Presentation.pptx
Visual explanation of Dijkstra's Algorithm using Python
4Seller: The All-in-One Multi-Channel E-Commerce Management Platform for Glob...
DuckDuckGo Private Browser Premium APK for Android Crack Latest 2025
Microsoft Office 365 Crack Download Free
E-Commerce Website Development Companyin india
iTop VPN Crack Latest Version Full Key 2025
Wondershare Recoverit Full Crack New Version (Latest 2025)
Full-Stack Developer Courses That Actually Land You Jobs
How to Use SharePoint as an ISO-Compliant Document Management System
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
Modern SharePoint Intranet Templates That Boost Employee Engagement in 2025.docx

Storage Class