Monday, February 8, 2010

C++ - 07 - Which of the following is false?

(a) An entire non-char array cannot be input or output at once.


(b) two arrays cannot be meaningfully compared with equality or relational operators.


(c) arrays cannot be assigned to one another (i.e., array1 = array2;).


(d) C++ ensures that you cannot “walk off” either end of an array.C++ - 07 - Which of the following is false?
I think that is d) as there is nothing in the language for that. If you do go past the end you will get an exception which is not ensuring you cannot walk off either end.C++ - 07 - Which of the following is false?
C- False





Arrays cannot assigned directly, but one array can copied to another by using strcpy function.

No comments:

Post a Comment