Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Constants
Point out the error in the program. #include<stdio.h> const char *fun(); int main() { *fun() = 'A'; return 0; } const char *fun() { return "Hello"; }
Error: RValue required
Error: Lvalue required
Error: fun() returns a pointer const character which cannot be modified
No error
Show Answer
Correct Answer:
Error: fun() returns a pointer const character which cannot be modified
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment