Can somebody give me a clue in this?
I'm trying to make up a function that will return a string value to the main function.. Here is my best attempt on doing so.
Can somebody help me with this?? It can't be compiled...Code:#include <stdio.h> char* MyFunction(); int main() { char Strings[40]; Strings = MyFunction(); printf("%s",Strings); return 0; } char* MyFunction() { char ItIsStrings[40]; printf("Please insert strings: "); scanf("%s",ItIsStrings); return(ItIsStrings); }