Hi guys,
I was wondering, if I do something like this,
Where does the string get saved? Is it saved in stack?Code:LPWSTR func()
{
LPWSTR pszString = L"Some string";
return pszString;
}
int main(...)
{
...
LPWSTR pszString = func();
...
}
I am asking this because I wanted to know if using returned pszString
in the main function is legal or not. Thanks!