comp.lang.c
[Top] [All Lists]

Re: need help with arrays

Subject: Re: need help with arrays
From: Ben Bacarisse
Date: Tue, 29 Apr 2008 19:10:09 +0100
Newsgroups: comp.lang.c

pereges <Broli00@xxxxxxxxx> writes:

> On Apr 29, 9:50 pm, Ben Bacarisse <ben.use...@xxxxxxxxx> wrote:
> <snip>
>
>> Better use malloc.  There is no advantage in zeroing (arithmetically)
>> the pointers.
>
> How is malloc any different ? Both will achieve same purpose ?

There was no point in zeroing the array, that is all.  It is sometimes
useful and sometimes not.

-- 
Ben.

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy