yeah u r correct only as per books.... but, comming to praticle... how ever we have to include the file know.... if we don't declare as extern type also we can access the variable in other files.... So, please tell me any praticle difference where extern type declaration is compulsory....
Thanks & Rgds Madhukar --- Thirumoorthy Chettiannan <[EMAIL PROTECTED]> wrote: > Hi Madhu Kumar, > Global Variables scope is limited to the file in > which the variable > resides. But EXTERN variable can be accessed > globally in all the > files. > > Examples. > A global Variable A residing on file exp1.c can't > be accessed from exp2.c. > A EXTERN variable B residing on the file exp1.c > can be accessed from exp2.c. > > Hope this clears you doubt. > > -- > With Warm Regards, > Thirumoorthy.C, > Ready Test Go Pvt Ltd, > No 22, Oliver Road, > Mylapore, > Chennai - 4. > Office : +(91)44 55546600 Extn 219 > Mobile: +(91) 98407 32016 > ________________________________________________________________________ Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony ------------------------ Yahoo! Groups Sponsor --------------------~--> $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/EbFolB/TM --------------------------------------------------------------------~-> To unsubscribe : [EMAIL PROTECTED] Yahoo! Groups Links <*> To reply to this message, go to: http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4835 Please do not reply to this message via email. More information here: http://help.yahoo.com/help/us/groups/messages/messages-23.html <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Programmers-Town/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
