Const - Point Out Errors Multiple Questions and Answers.




1.Point out the error in the program?
A. Error: unknown pointer conversion
B. Error: cannot convert ptr const value
C. No error
D. None of above

2.Point out the error in the program (in Turbo-C).
A. Error: unknown max in declaration/Constant expression required
B. Error: invalid array string
C. No error. It prints A A
D. None of above

3.Point out the error in the program?
A. Error: RValue required
B. Error: cannot modify const object
C. Error: LValue required in strcpy
D. None of above

4.Point out the error in the program?
A. Error: cannot convert 'const char *' to 'char *'.
B. Error: Lvalue required
C. No error and No output
D. None of above

5.Point out the error in the program?
A. Error: unknown data type const int
B. Error: const variable have been initialised when declared.
C. Error: stack overflow in x
D. None of above

»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers