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 volatile and const volatile?
what is the syallabus of computer science students in group- 1?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
How can I implement sets or arrays of bits?
Can you write the function prototype, definition and mention the other requirements.
In a switch statement, what will happen if a break statement is omitted?
Explain how does free() know explain how much memory to release?
Tell me when is a void pointer used?
What is use of #include in c?
What does #pragma once mean?
Write a program to check armstrong number in c?
write a progrmm in c language take user interface generate table using for loop?
Process by which one bit pattern in to another by bit wise operation is?
Which is better malloc or calloc?
How does struct work in c?