Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the difference between volatile and const volatile?

990


what is the syallabus of computer science students in group- 1?

2324


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

2346


How can I implement sets or arrays of bits?

1049


Can you write the function prototype, definition and mention the other requirements.

1140


In a switch statement, what will happen if a break statement is omitted?

1069


Explain how does free() know explain how much memory to release?

1080


Tell me when is a void pointer used?

1186


What is use of #include in c?

1172


What does #pragma once mean?

1168


Write a program to check armstrong number in c?

1134


write a progrmm in c language take user interface generate table using for loop?

2053


Process by which one bit pattern in to another by bit wise operation is?

1170


Which is better malloc or calloc?

1106


How does struct work in c?

1094