Hi all,
A global variable in a file also can be access in
other files by including it...
extern type variable declaration mean that the
variable has a link in other file(no memory storage
allocation is done)...
Suppose two files are there...f1.c,f2.c.
f1.c ---u have declared "extern a;"
f2.c ---u have to include the f1.c file and
declared "int a;"
So here f1.c variable 'a' is linked to f2.c variable
'a'... at compile time only...
in this way extern and global differ's
i hope u understood now...
if u think in deep(by doing practically then u will
get more difference when we r doing project's with
many no of files then it may get usefull..)
Rgds
Madhukar
________________________________________________________________________
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=4935
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/