From: "Marco Fabiani" Newsgroups: comp.os.msdos.djgpp Subject: Question: allocation Date: Mon, 21 Jun 1999 22:29:20 +0200 Organization: TIN Lines: 29 Message-ID: <7km7cs$sc$1@nslave1.tin.it> NNTP-Posting-Host: a-pe5-49.tin.it X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I've a little question: i'f i declare: int a[10]; int b[10]; int main() { int c[10]; int d[10]; /* ecc.ecc. */ return 0; } where a, b, c, d goes? c and d should go on stack, that in Intel-based machines means c > d (c is allocated at an upper address than d), but a and b?? Does djgpp use a data segment for global variables (thus b > a) or system stack (thus a > b)? And, is it safe to assume that a and b are allocated consecutively in memory? Thanks Marco