If you assign an empty string to a C string, eachcharacter of the C string will contain
Question:
If you assign an empty string to a C string, eachcharacter of the C string will contain
a null terminator
a space
a zero
a null pointer
What does the statement that follows do?
double gallons[6] = { 12.75, 14.87 };
It assigns the two values in the initialization list tothe first two elements and default values to the otherelements.
It assigns the two values in the initialization list tothe first two elements but leaves the other elements with the values currently inmemory.
It assigns the two values in the initialization list tothe first and second elements, third and
fourth elements, and fifth and sixth elements.
This statement is invalid.
When you pass an array to a function, the functionreceives
a copy of the array
a reference to the array
the data type of the array and the number ofelements it contains
the data type of the array and a pointer to itsfirst element
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch