|
INTERVIEW QUESTIONS
C
C BASICS
DETAILS
Question: What are the different storage classes in C ?
Answer: C has three types of storage: automatic, static and allocated.
Variable having block scope and without static specifier have automatic storage duration.
Variables with block scope, and with static specifier have static scope. Global variables (i.e, file scope) with or without the the static specifier also have static scope.
Memory obtained from calls to malloc(), alloc() or realloc() belongs to allocated storage class.
|
|
|
Category |
C Basics Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7096 users |
Added on |
9/18/2014 |
Views |
70411 |
Rate it! |
|
|
Question:
What are the different storage classes in C ?
Answer:
C has three types of storage: automatic, static and allocated.
Variable having block scope and without static specifier have automatic storage duration.
Variables with block scope, and with static specifier have static scope. Global variables (i.e, file scope) with or without the the static specifier also have static scope.
Memory obtained from calls to malloc(), alloc() or realloc() belongs to allocated storage class. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is C language ?
|
View Answer
|
|
Difference between "C structure" and "C++ structure".
|
View Answer
|
|
Explain about the following: 1.problem identification 2.task analysis 3.data analysis 5.decision input & output 6.development algorithm 7.program cooling
|
View Answer
|
|
Why two pointers cannot be added in c language?
|
View Answer
|
|
Is the c is procedure oriented?
|
View Answer
|
|
Can you write a c program without using main function?
|
View Answer
|
|
Tell me answer for this statement printf("printf("aim")");
|
- C Basics Interview Questions & Answers">
View Answer
|
|
Difference between :- 1) C and C++ 2) main() in c and main() in c++ ?
|
View Answer
|
|
What is :- Asembler , compiler , Preprocessor , laxical analysis , parsing ?
|
View Answer
|
|
How can we use data connectivity in 'c' language?
|
View Answer
|
|
Write a program for result management system of a college ?
|
View Answer
|
|
Is it possible to print graphics output in C?
|
View Answer
|
|
How can C programs run without header files?
|
View Answer
|
|
What is c graphics?
|
View Answer
|
|
write a program for printing when i press a key next to the letter in the alphabetical order can be printed
|
View Answer
|
|
how to create relation calculator program using c language
|
View Answer
|
|
how to create love flames program using c language
|
View Answer
|
|
Can anyone please tell me about a website from which I could install Turbo C (compiler) for free??
|
View Answer
|
|
What is the use of semicolon at the end of every statement?
|
View Answer
|
|
What are the packages in c?
|
View Answer
|