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

Where register variables are stored in c?

1002


How do you determine a file’s attributes?

1134


What is queue in c?

1157


Can the curly brackets { } be used to enclose a single line of code?

1217


What are the 32 keywords in c?

1140


What is the acronym for ansi?

1106


How can I find out how much free space is available on disk?

1104


Do string constants represent numerical values?

1448


What is the value of h?

1087


With the help of using classes, write a program to add two numbers.

1082


Is main an identifier in c?

1206


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2597


What is the default value of local and global variables in c?

1099


Explain how are 16- and 32-bit numbers stored?

1308


What does #pragma once mean?

1207