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
What is the difference between c &c++?
Write a program to reverse a linked list in c.
What is #line used for?
What is infinite loop?
What is p in text message?
Is a pointer a kind of array?
What are global variables and explain how do you declare them?
Difference between exit() and _exit() function?
Where are some collections of useful code fragments and examples?
What is the meaning of 2d in c?
How can I run c program?
Why c is known as a mother language?
What is #error and use of it?
Explain how do you search data in a data file using random access method?
Write a Program to accept different goods with the number, price and date of purchase and display them