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 / vadivel t

No. it is not valid,

Bcos we can not initialise a variable with an extern key
word.ie.,

The statement extern int i = 100; is wrong.

Is This Answer Correct ?    14 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between null pointer and void pointer.

1129


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1458


Can you think of a logic behind the game minesweeper.

2519


What is the difference between functions abs() and fabs()?

1207


Why c is known as a mother language?

1129


What is file in c preprocessor?

1194


Write a progarm to find the length of string using switch case?

2120


Why we use stdio h in c?

1092


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

2851


What is wrong in this statement? scanf(“%d”,whatnumber);

1285


What is strcpy() function?

1214


Why c language?

1114


What is the difference between ‘g’ and “g” in C?

4088


How to set file pointer to beginning c?

1245


How do you do dynamic memory allocation in C applications?

1135