Publicité
Please let me know which of these 10 C++ statements are True and and w.docx
Please let me know which of these 10 C++ statements are True and and w.docx
Prochain SlideShare
JAVA LiteralsJAVA Literals
Chargement dans ... 3
1 sur 2
Publicité

Contenu connexe

Plus de kdavid658(20)

Publicité

Please let me know which of these 10 C++ statements are True and and w.docx

  1. Please let me know which of these 10 C++ statements are True and and which are False (no explanation needed, thx). 1.The preprocessor symbol NULL and the C-string terminator, the null character share the value 0 2.NSI/ISO C++ standard includes a string-handling library in the form of the class string. 3.C-string literals are written ‘Hello’. 4.A C-string variable is just an array of characters. Explanation: A C-string must be terminated with the null character. Just an array of char is not enough. 5.A C-string variable with a something in it is always filled with characters. 6.A pointer is a variable that holds the address of some other location in memory. 7.Pointer variables are just memory addresses and can be assigned to one another without regard to type. 8.The declaration below declares three pointer variables of type pointer to double that is, a pointer of type (double*) double* p1, p2, p3; 9.A pointer is an address, an address is an integer, but a pointer is not an integer. 10.You can get a pointer value to initialize a pointer variable from an object of an appropriate type with the “address-of― operator, &. Solution 1) true
  2. 2)true 3)false 4)true 5)true 6)true 7)true 8)true 9)true 10)true
Publicité