CompuServe Thread

Forum unknown · Help/Announcements

#"C"

5 messages in this thread
#18422From: Jim Nangano/SYSOPMay 11, 1986 10:04 PM
Well, Lattice 3.03 has a major bug in it's array indexing. to access the third element of B array, it would normaly be coded as : i=1; value = B[i+1]; unfortunatly, Lattice really messes that up. To get the same result with Lattice, you would have to code it as : i=1; value = B[i]+1; Hey, I know it doesnt make sense, but it is a bug with 3.03
#18444From: Bela Lubkin/SysopMay 11, 1986 10:52 PM
It's not in getting the value, but in getting the address, isn't it? (pointer=&B[I+1] –> pointer=&B[i]+1) – Bela
#18448From: Jim Nangano/SYSOPMay 11, 1986 11:25 PM
In one of those or both cases. Dont use Lattice C anymore, and I dont really want to find out! (grin)
#18448From: Jim Nangano/SYSOPMay 11, 1986 11:25 PM
In one of those or both cases. Dont use Lattice C anymore, and I dont really want to find out! (grin)
#18444From: Bela Lubkin/SysopMay 11, 1986 10:52 PM
It's not in getting the value, but in getting the address, isn't it? (pointer=&B[I+1] –> pointer=&B[i]+1) – Bela