Author: Dann Corbit
Date: 19:20:19 09/05/03
Go up one level in this thread
On September 05, 2003 at 20:14:30, macaroni wrote: >Thanks! >This may sound like a really dumb question. But what kind of things are 'bad >memory access'? One example: char fruit[5]; strcpy(fruit, "apple"); // One byte past the end written to Another example: char *p; x = p[50000]; // Read a byte at offset 50,000 from a random number Another: int list[5]; list[5] = 0; // No element number 5 since they go 0 to 4...
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.