Re: Dynamic Array
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 23:00:36 +0100
On Mon, 18 Apr 2005 23:17:27 +0200, in comp.lang.c , "Ronny Mandal"
<ronnyma@xxxxxxxxxxx> wrote:
>Thanks, your solution really worked, except that realloc() is a void*
>function,
This isn't going to cause any problems
>the program crashed when I tried to assign its "output" to a,
>which was the original array.
if a was a real array (as oppose to a pointer to something), you can't
assign to them. You've snipped too much context to be sure tho.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
.
- References:
- Dynamic Array
- From: Ronny Mandal
- Re: Dynamic Array
- From: Daniel Cer
- Re: Dynamic Array
- From: Ronny Mandal
- Dynamic Array
- Prev by Date: Re: printf statement not executed
- Next by Date: About casts (and pointers)
- Previous by thread: Re: Dynamic Array
- Next by thread: Re: Dynamic Array
- Index(es):
Relevant Pages
|
|