what is the correct way of declaring a function that return an array of characters?
Also how do return array of characters from within a local function?
I tried use a pointer to the variable that was declared in the location function, sometimes, it gave incorrect result. maybe because of the lifetime of the local variable.
Code:char *f ( char somearray[])
{
}