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...


If the static variable is declared as global,
will it be same as extern?



If the static variable is declared as global, will it be same as extern?..

Answer / venkat

static :if i declare the static varible as global that
variable i can acces only with in the file (i.e i can't
access that variable from other file )


extern :if the varible i declared as extern than that extern
variable i can acces from other file also

Is This Answer Correct ?    29 Yes 4 No

Post New Answer

More C Interview Questions

Write a program to add a given duration with time(24hrs format)

1 Answers   Protech,


Write a program to generate random numbers in c?

0 Answers  


What functions are used for dynamic memory allocation in c language?

0 Answers  


What are the 3 types of structures?

0 Answers  


program to print upper & lower triangle of a matrix

2 Answers   TCS,


What is 1f in c?

0 Answers  


Why c is a procedural language?

0 Answers  


How can I rethow can I return a sequence of random numbers which dont repeat at all?

0 Answers  


N O S I E R + A S T R A L ---------------- 7 2 5 6 1 3

3 Answers   Honeywell,


for(i=1;i>0;i++); printf("i=%d",i); what will be the answer????

7 Answers  


if we take a number as a char then can we manipulate(add, subtract) on this number

2 Answers  


in b=6.6/a+(2*a+(3*c)/a*d)/(2/n); which operation will be performed first a) 6.6/a b) 2*a c) 3*c d) 2/n

1 Answers  


Categories