Home » C Programming » Constants

Point out the error in the program. #include const char *fun(); int main() { *fun() = 'A'; return 0; } const char *fun() { return "Hello"; }

Correct Answer: Error: fun() returns a pointer const character which cannot be modified

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion