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> int main() { const int k=7; int *const q=&k; printf("%d", *q); return 0; }
Error: RValue required
Error: Lvalue required
Error: cannot convert from 'const int *' to 'int *const'
No error
Show Answer
Correct Answer:
No error
Explanation:
No error. This will produce 7 as output.
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment