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

in one file global variable int i; is declared as static. In
another file it is extern int i=100;
Is this valid ?

Answer Posted / dipti

No its in valid as a static variable cannot be declared as extern.
The whole and entire purpose of static is to declare that a variable is private to the source file that it is declared in.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unary operator?

1098


What is the difference between memcpy and memmove?

1016


What are loops c?

1052


What is a good way to implement complex numbers in c?

1047


What is console in c language?

1096


Explain what is a const pointer?

1079


hi send me sample aptitude papers of cts?

2163


number of times a digit is present in a number

2037


Why do some versions of toupper act strangely if given an upper-case letter?

1076


Explain how many levels deep can include files be nested?

1072


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16757


How do I round numbers?

1008


What is the value of c?

1061


Can you please explain the scope of static variables?

1048


Explain heap and queue.

1076