Xavier Bestel wrote: > Le 20 Feb 2001 02:10:12 +0100, Andreas Bombe a écrit : > > > > An array is a word that contains the address of the first element. > > No. Exercise 3: compile and run this: > file a.c: > char array[] = "I'm really an array"; > > file b.c: > extern char* array; > main() { printf("array = %s\n", array); } > try file b.c extern char array; main() { printf("array= %s\n", &array); } ? > > ... and watch it biting the dust ! > in short: an array is NOT a pointer. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Re: Is this the ultimate stack-smash fix? Eric W. Biederman
- Re: Is this the ultimate stack-smash fix? Jeremy Jackson
- Re: Is this the ultimate stack-smash fix? Gerhard Mack
- Re: Is this the ultimate stack-smash fix? Eric W. Biederman
- Re: Is this the ultimate stack-smash fix? Manfred Spraul
- Re: Is this the ultimate stack-smash fi... Eric W. Biederman
- Re: Is this the ultimate stack-sma... Peter Samuelson
- Re: Is this the ultimate stack... Eric W. Biederman
- Re: Is this the ultimate stack... Andreas Bombe
- Re: Is this the ultimate stack... Xavier Bestel
- Re: Is this the ultimate stack... Jeremy Jackson
- Re: Is this the ultimate stack... Xavier Bestel
- Re: Is this the ultimate stack... Andreas Bombe
- Re: Is this the ultimate stack... Xavier Bestel
- Re: Is this the ultimate stack-smash fix? Jeremy Jackson
- Re: Is this the ultimate stack-smash fix? Florian Weimer