Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

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

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Nächste SlideShare
JAVA Literals
JAVA Literals
Wird geladen in …3
×

Hier ansehen

1 von 2 Anzeige

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

Herunterladen, um offline zu lesen

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)true
3)false
4)true
5)true
6)true
7)true
8)true
9)true
10)true
.

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)true
3)false
4)true
5)true
6)true
7)true
8)true
9)true
10)true
.

Anzeige
Anzeige

Weitere Verwandte Inhalte

Ähnlich wie Please let me know which of these 10 C++ statements are True and and w.docx (20)

Weitere von kdavid658 (20)

Anzeige

Aktuellste (20)

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

  1. 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. 2)true 3)false 4)true 5)true 6)true 7)true 8)true 9)true 10)true

×