Hello
I want to create a function read() that gets a string from the user and returns a char *
How can i do it?
This way i get an error that i am trying to return a local variableCode:char * read(){ char string[101]; fgets(string, 100, stdin); return string; }