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


Please Help Members By Posting Answers For Below Questions

Why do we use stdio h and conio h?

642


What is sorting in c plus plus?

568


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

636


Describe wild pointers in c?

644


Explain what are preprocessor directives?

634






What is meant by recursion?

635


What kind of structure is a house?

562


Is c procedural or object oriented?

585


Is anything faster than c?

589


What is define c?

577


Explain how can you determine the size of an allocated portion of memory?

627


Is main is user defined function?

601


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

586


Is it better to bitshift a value than to multiply by 2?

662


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2940