c**********e 发帖数: 2007 | 1 Which one of the following statements about const variables is true?
a) The address of a const variable can only be assigned to a float variable.
b) A pointer to a non-const cannot be assigned the address of a const
variable.
c) A pointer to a const can be assigned to multiple objects at compile time.
d) Pointers to const objects must be initialized to NULL before they can be
referenced.
e) A pointer to a non-const cannot be assigned the address of a volatile
variable. |
E*U 发帖数: 2028 | 2 b
variable.
time.
be
【在 c**********e 的大作中提到】 : Which one of the following statements about const variables is true? : a) The address of a const variable can only be assigned to a float variable. : b) A pointer to a non-const cannot be assigned the address of a const : variable. : c) A pointer to a const can be assigned to multiple objects at compile time. : d) Pointers to const objects must be initialized to NULL before they can be : referenced. : e) A pointer to a non-const cannot be assigned the address of a volatile : variable.
|
j***i 发帖数: 1278 | 3 你哪里找的这么多题呀
Which one of the following statements about const variables is true?
a) The address of a const variable can only be assigned to a float variable.
b) A pointer to a non-const cannot be assigned the address of a const
variable.
c) A pointer to a const can be assigned to multiple objects at compile time.
d) Pointers to const objects must be initialized to NULL before they can be
referenced.
e) A pointer to a non-const cannot be assigned the address of a volatile
variable.
【在 c**********e 的大作中提到】 : Which one of the following statements about const variables is true? : a) The address of a const variable can only be assigned to a float variable. : b) A pointer to a non-const cannot be assigned the address of a const : variable. : c) A pointer to a const can be assigned to multiple objects at compile time. : d) Pointers to const objects must be initialized to NULL before they can be : referenced. : e) A pointer to a non-const cannot be assigned the address of a volatile : variable.
|
k*******d 发帖数: 1340 | 4 Seems some C++ test questions. Good for interview preparation, I think.
Many questions ask about tricky parts of C++.
variable.
time.
be
【在 j***i 的大作中提到】 : 你哪里找的这么多题呀 : : Which one of the following statements about const variables is true? : a) The address of a const variable can only be assigned to a float variable. : b) A pointer to a non-const cannot be assigned the address of a const : variable. : c) A pointer to a const can be assigned to multiple objects at compile time. : d) Pointers to const objects must be initialized to NULL before they can be : referenced. : e) A pointer to a non-const cannot be assigned the address of a volatile
|