What are Storage Classes in C ?
Answer Posted / vijay r15
storage class is an
attribute that changes
the behaviour of a
variable
There r 4types of
storage classes.They
are
auto
static
extern
register
auto- auto is the
default var type.
ex int x=1 and auto
int x=1 both r same
static- static
variable is a
variable,with in the
scope when it reaches
the initialization it
blindly igores and
hold the updated value
register-reg var tells
the compiler that the
variable will be
heavily used.It is
stored in cpu register
extern- extern var
tells that they have
allocated space in
some other program.
But just using here.
We cant initialize
using extern
with thanks and
regards,
vijay r15,
raj.Vijay55@gmail.Com
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is console in c language?
How arrays can be passed to a user defined function
Explain logical errors? Compare with syntax errors.
What is formal argument?
Can you think of a logic behind the game minesweeper.
What are the benefits of c language?
What is union and structure?
What is the newline escape sequence?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
what is the function of pragma directive in c?
In a switch statement, what will happen if a break statement is omitted?
What is a program flowchart and how does it help in writing a program?
Why is c fast?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions