#include <string.h>
void testok(void) reentrant { char buff[20];
buff[0]=1;
strcpy(buff,"hello");
//ok: buff = "hello"
}
void testfail(void) reentrant { char buff[20];
buff[0]=1; buff[2]=2;
//fail: buff = "ello"
void main(void) { testok(); testfail(); }
no. it just not same as what you call standard.
You seem to be beyond learning something new, but I'll drop you a few hints anyway.
*) It's not what I call standard, it is the Standard. There's a reason I spell it like that. *) You're incorrect in believing that you would get to decide what is undefined behaviour.
you probably dont. LOL. You really have no idea.
Lol. Don't get upset little man. I know more than you think I think.