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() { char *ptr = fun(); return 0; } const char *fun() { return "Hello"; }
Error: Lvalue required
Error: cannot convert 'const char *' to 'char *'.
No error and No output
None of above
Show Answer
Correct Answer:
No error and No output
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment