a ok, e se invece fosse stato
oppureCodice PHP:char* retStr()
{
char *str="ciao"
return str;
}
int main()
{
char *str;
str=retStr();
printf("%s\n", str);
}
in questi 2 casi quale sarebbe stato l'esito?Codice PHP:char* retStr(char* str)
{
return str;
}
int main()
{
char *str;
str=retStr("ciao");
printf("%s\n", str);
}

Rispondi quotando