Re: confused about extern use
- From: "Lalatendu Das" <lalatdas@xxxxxxxxx>
- Date: 21 Feb 2007 00:36:33 -0800
On Feb 21, 12:22 pm, Ian Collins <ian-n...@xxxxxxxxxxx> wrote:
Lalatendu Das wrote:Actually what u mean by another compilation unit. If my assumption is
Here in the above example I am confused about, what extra the coder
going to achieve by declaring it as extern in the header file a.h.
So it can be used in another compilation unit.
not wrong do u mean If I will try to compile another C-program no need
to include this header file or what ?
I don't think so it will work in that case. And in any case if I have
to include this header file to define one variable of structure type
"abc" then why to declare it extern there.
Actually I might have some wrong notion, please explain through
example if u want to?
thanks for ur replay.
--
Ian Collins.
.
- Follow-Ups:
- Re: confused about extern use
- From: CBFalconer
- Re: confused about extern use
- From: Nick Keighley
- Re: confused about extern use
- From: Chris Dollin
- Re: confused about extern use
- References:
- confused about extern use
- From: Lalatendu Das
- Re: confused about extern use
- From: Ian Collins
- confused about extern use
- Prev by Date: Re: When to use automatic variables and when to use malloc
- Next by Date: Re: When to use automatic variables and when to use malloc
- Previous by thread: Re: confused about extern use
- Next by thread: Re: confused about extern use
- Index(es):
Relevant Pages
|