Consider the declarations
char a;
const char aa = 'h';
char *na;
const char *naa;
Which of the following statements
Statement I: aa = a;
Statement II: na = &a;
Statement III: na = &aa;
is/are illegal?
A. | Only I and II |
B. | Only II and III |
C. | Only I and III |
D. | All the three statements are illegal |
Answer : C Explanation : Suhashini Chaurasia said: (3:39pm on Tuesday 4th March 2014)
Since aa is constant its value cannot be changed in the program so statement I is false. Statement II
|
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |