Re: C Interview Questions
- From: "Old Wolf" <oldwolf@xxxxxxxxxxxxxx>
- Date: 30 Oct 2006 18:29:12 -0800
Keith Thompson wrote:
If a header contains a function definition, and that header is
included in two or more translation units in the same program, Bad
Things Could Happen. (I'm too lazy to figure out whether it's
undefined behavior, a constraint violation, or whatever.)
Bad things don't happen if the function definitions are static,
or if it is C99 and they are inline
.
- References:
- C Interview Questions
- From: dhruvaraj
- Re: C Interview Questions
- From: Richard Heathfield
- Re: C Interview Questions
- From: J. J. Farrell
- Re: C Interview Questions
- From: Keith Thompson
- C Interview Questions
- Prev by Date: Re: C Interview Questions
- Next by Date: Re: if clause
- Previous by thread: Re: C Interview Questions
- Next by thread: Re: C Interview Questions
- Index(es):
Relevant Pages
|
|