Skip to main content

Recent Posts

Web Technology

Storage Class in C

Storage class is a concept In C which provides information about the variable's visibility ,lifetime and scope.

Storage class tells about the following things of variable.
i) Scope of variable
ii) Initial value of variable
iii) Storage location of variable
iv) Life span of variable

Types of storage class:-

i) Automatic variables
ii) External variables
iii) Static variable
iv)  Register variable

Different types of storage class are explained in the table given below:-


Properties/Types
Auto
Register
Extern
Static
storage
Memory
CPU register
Memory
Memory
Default initial value
Garbage value
Garbage Value
0(zero)
0(zero)


scope
Only within the block it is defined 
Only to the block it is defined
Within whole program
Only within the block it is defined


Life
Till control remains within block in which variable is defined
Same as auto
As long as program executes
Persist between different function call 

Click Here to download complete Notes of C programming


Comments

Popular posts from this blog

Pokhara University BE-IT & Computer Engineering Notes

Features:- Based on Pokhara University Syllabus  Simple and easy to understand  Exam oriented  Short and effective  Handwritten Notes plus computerized  Extra study materials  You can read online  You can download freely   In pdf format SEMESTER WISE NOTES  First Semester Second Semester Third Semester Fourth Semester Fifth Semester Sixth Semester Seventh Semester Eighth Semester

Web Technology

  Download Web technology Tutorial Solution  Q.5)  Write necessary code for creating following form. Do proper validation also. Q.6)  Write HTML code to generate following list. Q.12) How can you change the color and font of document in JavaScript? Q.13) Write a JavaScript program to display a prompt for input number, and check whether that number is prime number or not and show the result in alert box. Q.20) Create and test an HTML document that describes a table with the following contents: The columns of the table must have the headings “Pine,” “Maple,” “Oak,” and “Fir.” The rows must have the labels “Average Height,” “Average Width,” “Typical Life Span,” and “Leaf Type.” You can make up the data cell values. Q.23) Create and test an HTML document that describes nested ordered lists of cars. The outer list must have three entries: compact, midsize, and sports. Inside each of these three lists there must be two sublists of body styles. The compact- and midsize-car sublists are two d

Pokhara University Syllabus

Pokhara University Bachelor of Engineering in Information Technology(BE-IT) syllabus Preview and Download Pokhara University Computer Engineering  Syllabus Preview and Download Pokhara University Civil Engineering Syllabus Preview and Download