#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(); }
so pc programs that do return don't do anything?
Whether or not they do return has nothing to do with it. But yes, it's possible to write a seemingly complex PC program that still ends up being functionally equivalent to
int main(void) { return 0; }