Using C programming, with GCC in windows (with CodeBlocks)Why this code doesn't work (running it gives empty console window)
# include <stdio.h># include <string.h>int main(){ char* str = "hello"; printf("%s", strrev(str));}
but using an array works fine
char str[] = "hello";
Note that strrev function prototype is:
char *strrev(char *str);