The most concise code to output a specified string in reverse order in C language (a strange trick)

The most concise code to output a specified string in reverse order in C language (a strange trick)

void str_reverse(char *s)
{
    if (*s) {
        str_reverse(s + 1);
        printf("%c", *s);
    }
}

Comments

Popular posts from this blog

Python Receiving and parse JSON Data via UDP protocol

ubus lua client method and event registration code demo/example