Mail Archives: djgpp/1998/02/12/04:46:56
--- On Tue, 10 Feb 1998 09:20:54 +0300 Dim Zegebart <zager AT post DOT comstar DOT ru> wrote:
>GCC has special feature which allows to declare arrays dynamically :
>int foo(ibt x,int y)
>{ int arr[x][y];
> ...
>}
>That's all.
>Note, this is a specific gcc feature, so it's not portable to other
>compilers.
This sounds very odd... Can I then return arr and use it as every other dynamic
allocation? What's the type of arr in this case? Can you explain how it is implemented by
GCC?
TIA
---------------------------------------------
Noam Rotem
John Bryce Training Centre
Tel Aviv, Israel.
03-7535803
=============================================
1. Take upon yourself an impossible mission.
2. Accomplish the mission.
3. Go back to step 1.
It's the only sane answer to modern life.
---
11/02/98
22:37:50
- Raw text -