Hi,
I have a doubt, in the following program prints the string returned by throwstring()function.
The string which the function is returning local to the function or outside of the function.
Can somebody throw light on underlying mechanism..
************************************************
main()
{
char* throwstring();
printf("%s\n", throwstring());
}
char *throwstring()
{
return "I'm from throwstring func";
}
**************************************************
Thanks in Advance
I have a doubt, in the following program prints the string returned by throwstring()function.
The string which the function is returning local to the function or outside of the function.
Can somebody throw light on underlying mechanism..
************************************************
main()
{
char* throwstring();
printf("%s\n", throwstring());
}
char *throwstring()
{
return "I'm from throwstring func";
}
**************************************************
Thanks in Advance