R
RedLars
This defines a local variable placed on the stack which will be
cleaned up when it goes out of scope, right?
{
char czText[] = "Hello world";
// code
} // out of scope
What about this definition?
{
const char * czText2 = "Hello world";
// code
}
Do I need to clean up this variable by using free() ? Thought I read
somewhere that free should only be used on variables that have been
malloc'ed which isnt the case here.
Appreciate any input.
cleaned up when it goes out of scope, right?
{
char czText[] = "Hello world";
// code
} // out of scope
What about this definition?
{
const char * czText2 = "Hello world";
// code
}
Do I need to clean up this variable by using free() ? Thought I read
somewhere that free should only be used on variables that have been
malloc'ed which isnt the case here.
Appreciate any input.