Const Questions And Answers.


1.What will be the output of the program?
A. 128
B. Garbage value
C. Error
D. 0

2.What will be the output of the program ?
A. Error: RValue required
B. Error: LValue required in strcpy
C. Error: cannot convert from 'const int *' to 'int *const'
D. No Error

3.What will be the output of the program?
A. Address of i Address of j
B. 10 223
C. Garbage Value
D. Error: cannot convert parameter 1 from 'const int **' to 'int **'

4.What will be the output of the program?
A. 5
B. 10
C. Garbage Value
D. Error

5.What will be the output of the program?
A. i= FFE2 ptr=12 j=FFE4 ptr=24
B. i= FFE4 ptr=10 j=FFE2 ptr=20
C. i= FFE0 ptr=20 j=FFE1 ptr=30
D. Garbage value