[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc memory allocation
On Tue, 2 Jun 1998, Constantin Eizner wrote:
> I was really sure that it doesn't work.
> I expected for message like " constant expected" or something like that.
>
> Nothing was happened.
> How the hell that work. What about memory allocation theory.
> Or I'm crazy.
>
> irina [10] /tmp > gcc test.c
> irina [11] /tmp >
ariel@fireaxe:~> gcc -Wall -o /tmp/test /tmp/test.c
/tmp/test.c:2: warning: return type of `main' is not `int'
/tmp/test.c: In function `main':
/tmp/test.c:4: warning: unused variable `a'
--Ariel
>
> void main()
> {
> int n=9;
> int a[n];
> }
>
> --
> ------------------------------------------------------------------------------
> Computer Center of Haifa University
> Mount Carmel, Haifa 31905, Israel
> ------------------------------------------------------------------------------
> Constantin Eizner | Tel. 972-4-8249299
> Network Engineer | Fax. 972-8249177
> Unix System Administrator | E-mail eizner@research.haifa.ac.il
> ------------------------------------------------------------------------------
> Key fingerprint = 47 A3 99 BA 6D 7A A4 82 EF EF 07 CF 06 D5 DA 4C
>
>
>
>
+---------------------------------------------------------------+
| Ariel Biener |
| e-mail: ariel@post.tau.ac.il Work ph: 03-6406086 |
| fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
+---------------------------------------------------------------+