how can we use static and extern?and where can we use this?
Answer Posted / vignesh1988i
static and extern are some types of storage classes in C...
there are four types of storage classes in C:
1) automatic (auto) storage class
2) static storage class
3) register storage class
4) extern storage class
static is a one which will be read only once by the compiler
(ie) it will ignore an another pass.... or it will be
initialized only once....... the scope of this class is
within the block only....
extern is a global declaration , but most of the compilers
dont prefer it to be used within a program.......
thank u
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Write a code to remove duplicates in a string.
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
Explain the use of #pragma exit?
What are runtime error?
What is function pointer c?
Why is #define used?
What is the difference between array_name and &array_name?
What is calloc()?
What is function definition in c?
Explain how can you restore a redirected standard stream?
Explain how do you convert strings to numbers in c?
Why double pointer is used in c?
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
Why is c so popular?
What is sizeof array in c?