[Freeciv-Dev] Re: newbie C question
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Tue, Mar 05, 2002 at 12:02:47PM +0000, Ben Webb wrote:
> On Tue, 5 Mar 2002, Per I. Mathisen wrote:
>
> > Will pointers always be initialized to NULL?
>
> No. No variables are initialised at all in C.
>
> > I seem to remember reading that somewhere, but maybe that wasn't
> > about C :)
>
> Some languages do (e.g. Perl, and some implementations of
> Fortran). But not C.
C++ does, though, no?
So if you use a C++ compiler to compile C code, then I think pointers
get initialised to '0' (NULL).
Jules
[Freeciv-Dev] Re: newbie C question, Raimar Falke, 2002/03/05
|
|