An out-of-bounds array reference in ANSI C does not return a 0, but rather results in "undefined" behaviour. This is often the return of whatever bytes occur next in memory, but it can be any behaviour at all -- a program crash, the output of the entire text of one of Shakespeare's plays, whatever. On a PIC and out-of-bounds reference to a constant array stored in code space will often crash completely because array lookups are implemented using computed gotos. Bob Ammerman RAm Systems ----- Original Message ----- From: "personal" To: Sent: Monday, July 15, 2002 8:50 AM Subject: [PIC]:two PICC problem!! 1: char i=9, ch[8]; ; ; if(ch[i]),,,,,,,gives what??? as ANSI C, out boundary will give 0. but in my pic, gives CRUSH...... why???? something else wrong? 2: atof(char *); do not work.... some switch somewhere else???? -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu