1 2 3 4 5 6 7 8 9 10 11
char* doit(int flag) { return 1 + (flag ? "\0wrong\n" : "\0right\n"); } int main() { char *result = doit(0); if (*result == 'r' && result[1] == 'i') exit(0); abort(); }