Sunday, July 12, 2009

2. Which of the following is the best explanation for the statement? char alph, * const ptr = &alph;?

a). The value at the location pointed to by ptr cannot change.


b). The address and value in ptr cannot change.


c). The address in ptr cannot change.


d). The above statement generates a compiler error.


Give the best explanation

2. Which of the following is the best explanation for the statement? char alph, * const ptr = %26amp;alph;?
c





The pointer is CONST and therefore it (the pointer's value, or address to alph) cannot change.

land survey

No comments:

Post a Comment