SlideShare a Scribd company logo
C             Programming
                       Language
               By:
    Yogendra Pal
yogendra@learnbywatch.com
  Dedicated to My mother and Father
Keep your notebook with you.

Write important point and questions that comes in your mind

     Solve Mind band exercise.
                                     Rewind when not clear


              Ask Questions by call or SMS or by mail


Keep Watching Keep Learning

THIS IS STORAGE CLASS
Introduction
• Variables have data types and storage classes.
• Value in a computer can be stored in
  – Memory or
  – CPU registers
• A storage class determines where to store the
  value of a variable.
Storage class
• Storage class determines     • 4 storage classes
   –   Where to store             –   Automatic
   –   Default initial value      –   Register
   –   Scope                      –   Static
   –   Life                       –   External
Automatic
• Keyword: auto
• Default storage class.
  – Where : Memory
  – Initial value : Garbage
  – Scope : Local to the block
  – Life : Till control remain within the block.
Register
• Keyword: register
• Faster access then automatic.
  –   Where : CPU registers
  –   Initial value : Garbage
  –   Scope : Local to the block
  –   Life : Till control remain within the block.
• Registers are limited.
• If no register is free compiler treat it as auto.
Static
• Keyword: static
  – Where : Memory
  – Initial value : Zero
  – Scope : Local to the block
  – Life : Persists between function calls.
• Use when really required.
External
• Keyword: extern
• Define outside of each function.
  – Where : Memory
  – Initial value : Zero
  – Scope : Global
  – Life : Till program terminates
• Use when really required.
To get complete benefit of this tutorial solve all the quiz on
                 www.learnbywatch.com

        For any problem in this tutorial mail me at
              yogendra@learnbywatch.com
                  with the subject “C”

               For Other information mail at
                 info@learnbywatch.com

More Related Content

PPTX
Code reviews
KEY
Dart: A Replacement for JavaScript and Why You Should Care
PPTX
Storage class in C Language
PPTX
Storage Classes and Functions
PPTX
Variables, Data Types, Operator & Expression in c in detail
PPTX
Storage classes in C
PPTX
11 lec 11 storage class
PPTX
Application Profiling for Memory and Performance
Code reviews
Dart: A Replacement for JavaScript and Why You Should Care
Storage class in C Language
Storage Classes and Functions
Variables, Data Types, Operator & Expression in c in detail
Storage classes in C
11 lec 11 storage class
Application Profiling for Memory and Performance

Similar to Storage class (20)

PDF
Application Profiling for Memory and Performance
PPTX
QSpiders - Memory (JVM architecture)
PDF
HTTP cache: keeping it fresh
PDF
Intro To Java Alpharetta Meetup Day-1
PPTX
Proctor AP Language Exams using Audacity and DiLL
PPTX
Austin Python Learners Meetup - Everything you need to know about programming...
KEY
Modern Java Concurrency (OSCON 2012)
PPTX
General Programming Concept
PPT
cache memory.ppt
PPT
cache memory.ppt
PPTX
Gpgpu intro
PDF
Number of Computer Languages = 3
PPTX
02D-Memory Management in Java.pptx
PDF
CNIT 126 Ch 9: OllyDbg
PDF
Session - Debugging memory stomps and other atrocities - Stefan Reinalter - T...
PPTX
Cache Presentation for Computer Organization & Assembly Language
PPT
openmp.New.intro-unc.edu.ppt
PDF
Code retreat @BMW Car IT
PPS
CS101- Introduction to Computing- Lecture 45
PDF
Java in High Frequency Trading
Application Profiling for Memory and Performance
QSpiders - Memory (JVM architecture)
HTTP cache: keeping it fresh
Intro To Java Alpharetta Meetup Day-1
Proctor AP Language Exams using Audacity and DiLL
Austin Python Learners Meetup - Everything you need to know about programming...
Modern Java Concurrency (OSCON 2012)
General Programming Concept
cache memory.ppt
cache memory.ppt
Gpgpu intro
Number of Computer Languages = 3
02D-Memory Management in Java.pptx
CNIT 126 Ch 9: OllyDbg
Session - Debugging memory stomps and other atrocities - Stefan Reinalter - T...
Cache Presentation for Computer Organization & Assembly Language
openmp.New.intro-unc.edu.ppt
Code retreat @BMW Car IT
CS101- Introduction to Computing- Lecture 45
Java in High Frequency Trading
Ad

More from Learn By Watch (20)

PPTX
Tutorial 9 fm
PPTX
Phase modulation
PPTX
Demodulation of fm pll detector
PPTX
Demodulation of fm slope and balanced slope detector
PPTX
In direct method of fm generation armstrong method
PPTX
Direct method of fm generation hartley oscillator method
PPTX
Carson's rule
PPTX
Spectrum and power of wbfm
PPTX
Narrow band frequency modulation nbfm
PPTX
General expression of fm signal
PPTX
Angle modulation
PPTX
Frequency division multiplexing
PPTX
Vsb modulation
PPTX
Demodulation of ssb synchronous detector
PPTX
Generarion of ssb phase discrimination method
PPTX
Generarion of ssb frequency discrimination method
PPTX
Ssb modulation
PPTX
Demodulation of dsb sc costas receiver
PPTX
Quadrature carrier multiplexing qam
PPTX
Demodulation of am synchronous detector
Tutorial 9 fm
Phase modulation
Demodulation of fm pll detector
Demodulation of fm slope and balanced slope detector
In direct method of fm generation armstrong method
Direct method of fm generation hartley oscillator method
Carson's rule
Spectrum and power of wbfm
Narrow band frequency modulation nbfm
General expression of fm signal
Angle modulation
Frequency division multiplexing
Vsb modulation
Demodulation of ssb synchronous detector
Generarion of ssb phase discrimination method
Generarion of ssb frequency discrimination method
Ssb modulation
Demodulation of dsb sc costas receiver
Quadrature carrier multiplexing qam
Demodulation of am synchronous detector
Ad

Recently uploaded (20)

PDF
Updated Idioms and Phrasal Verbs in English subject
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Lesson notes of climatology university.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Classroom Observation Tools for Teachers
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
01-Introduction-to-Information-Management.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
master seminar digital applications in india
Updated Idioms and Phrasal Verbs in English subject
202450812 BayCHI UCSC-SV 20250812 v17.pptx
A systematic review of self-coping strategies used by university students to ...
Lesson notes of climatology university.
Module 4: Burden of Disease Tutorial Slides S2 2025
UNIT III MENTAL HEALTH NURSING ASSESSMENT
LDMMIA Reiki Yoga Finals Review Spring Summer
Chinmaya Tiranga quiz Grand Finale.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Microbial diseases, their pathogenesis and prophylaxis
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Cell Types and Its function , kingdom of life
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Classroom Observation Tools for Teachers
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
01-Introduction-to-Information-Management.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
master seminar digital applications in india

Storage class

  • 1. C Programming Language By: Yogendra Pal yogendra@learnbywatch.com Dedicated to My mother and Father
  • 2. Keep your notebook with you. Write important point and questions that comes in your mind Solve Mind band exercise. Rewind when not clear Ask Questions by call or SMS or by mail Keep Watching Keep Learning THIS IS STORAGE CLASS
  • 3. Introduction • Variables have data types and storage classes. • Value in a computer can be stored in – Memory or – CPU registers • A storage class determines where to store the value of a variable.
  • 4. Storage class • Storage class determines • 4 storage classes – Where to store – Automatic – Default initial value – Register – Scope – Static – Life – External
  • 5. Automatic • Keyword: auto • Default storage class. – Where : Memory – Initial value : Garbage – Scope : Local to the block – Life : Till control remain within the block.
  • 6. Register • Keyword: register • Faster access then automatic. – Where : CPU registers – Initial value : Garbage – Scope : Local to the block – Life : Till control remain within the block. • Registers are limited. • If no register is free compiler treat it as auto.
  • 7. Static • Keyword: static – Where : Memory – Initial value : Zero – Scope : Local to the block – Life : Persists between function calls. • Use when really required.
  • 8. External • Keyword: extern • Define outside of each function. – Where : Memory – Initial value : Zero – Scope : Global – Life : Till program terminates • Use when really required.
  • 9. To get complete benefit of this tutorial solve all the quiz on www.learnbywatch.com For any problem in this tutorial mail me at yogendra@learnbywatch.com with the subject “C” For Other information mail at info@learnbywatch.com