Skip to content
RED SAGSkills
medium10 pts · first answer countsembedded-cstorage-classes

Is returning a literal safe

Is it safe to return this pointer and use it later?

const char *err_name(int e) {
    if (e == 1) return "TIMEOUT";
    return "UNKNOWN";
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions