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