Hi,
Code:
const char* f(Type t)
{
    if(t==TYPE0)
        return "type zero";
    if(t==TYPE1)
        return "type one";
    return "no valid type"
}

...
const char* v=f(TYPE0);
...
can I do that? will v have a valid string in it or just junk.
are the strings in function f are created on the stack or the heap?