-
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
C Interview Questions
main()
{
const char *fun();
*fun()='A';
}
const char *fun()
{
return "Hello";
}
fun() returns to a "const char" pointer which cannot be modified
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Ans