Point out the error in the following program

Main()

{

const char *fun();

*fun()='A';

}

const char *fun()

{

return "Hello";

}





fun() returns to a "const char" pointer which cannot be modified

This question is related to Sonata Interview

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions