No output produce after running the code. Blank and got nothing. What is the problem ?
#include <stdio.h>
#include <string.h>
char* foo(){
char temp[] = "World";
char *result;
strcpy(result, temp);
return result;
}
int main(){
printf("%s", foo());
return 0;
}