M
Massimiliano Alberti
Sometimes I've seen something like:
const char* ReturnNull()
{
return "";
}
Is this legal? Why? Is this because the string is a constant?
And... Is this legal:
const int* ReturnZero()
{
const int i = 0;
return &i;
}
const char* ReturnNull()
{
return "";
}
Is this legal? Why? Is this because the string is a constant?
And... Is this legal:
const int* ReturnZero()
{
const int i = 0;
return &i;
}