Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!hp4nl!tnosoes!joep From: joep@tnosoes.UUCP (Joep Mathijssen) Newsgroups: comp.sys.atari.st Subject: Turbo C v1.0 bug? Message-ID: <870@tnosoes.UUCP> Date: 28 Feb 90 10:52:00 GMT Organization: TNO Institute for Perception, Soesterberg, The Netherlands Lines: 34 || #include || || long tab[9000]; || || main() || { || int i; || long j; || || i = 0x2000; /* 0x2000 = 8192 */ || j = 0x2000L; || fprintf(stderr, "%lx, %lx\n", &(tab[i]), &(tab[j])); || } || || RESULT: || 561b2, 661b2 Can anybody explain the difference in the result when using an 'int' or 'long int' as array-index? Joep, PS: don't tell me this is a feature! =============================================================================== Joep Mathijssen TNO Institute for Perception P.O. Box 23 Phone : +31 34 63 562 11 3769 ZG Soesterberg E-mail: tnosoes!joep@mcvax.cwi.nl The Netherlands or: uunet!mcvax!tnosoes!joep ===============================================================================