function return string in C code example Example: how to make a function return a string c const char* myName() { char *name = "Flavio"; return name; }