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

extern static int i
func()
{
i =10;
i++;
printf("%d \n",i);
}
main()
{
i =20;
printf("%d \n",i);
func();
printf("%d \n",i);

}

Answer Posted / vadivelt

Program should give compiler error. Cos, u r trying to
allocate two different storage area to sigle int
variable 'i'.

ie.,
The below statement is invalid.
extern static int i;

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this initialization?

1010


Can we change the value of #define in c?

1001


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

2324


Why is python slower than c?

1094


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1264


How to declare a variable?

1011


Explain the use of bit fieild.

1142


What are Macros? What are its advantages and disadvantages?

1168


What is difference between structure and union with example?

1060


What is the difference between NULL and NUL?

1298


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

1135


How can I use a preprocessorif expression to ?

1066


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1560


How a string is stored in c?

1076


What is difference between union All statement and Union?

1113