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
State the difference between x3 and x[3].
What do you understand by friend-functions? How are they used?
Write a program to reverse a given number in c?
Dont ansi function prototypes render lint obsolete?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Do pointers store the address of value or the actual value of a variable?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
Is fortran faster than c?
how can I convert a string to a number?
Why is main function so important?
What is a lvalue
What is c token?
What are dangling pointers in c?
What does the function toupper() do?
Explain the advantages of using macro in c language?