KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I know this is wrong: char* getSomething() { char szLocal[5]; /* Put something in the char array somehow */ return szLocal; } ...because szLocal can be destroyed sometime after the function returns. But is this ok? char* getSomethingElse() { return "something else"; }
Tags (comma-separated)
Save Edits
Cancel