Just testing and need to know how to make this code work without using dynamic mem allocation for b?.
Code:char* rchar()
{
char b[100];
strcpy(b, "Hello World\n");
return (char*&)b;
}
int main(int argc, char* argv[])
{
char *s = rchar();
printf("%s",s);
return 0;
}
