Most C++ compilers initialize char array elements to a space, string array eleme
ID: 3575892 • Letter: M
Question
Most C++ compilers initialize char array elements to a space, string array elements to the empty string, and bool array elements to the keyword true.
Select one:
True
False
The first variable in a one-dimensional array is assigned a subscript of _____.
Select one:
a. 0
b. 1
c. either a or b
d. none of the above
You can do which of the following with elements in an array?
Select one:
a. assign values to them
b. use them in calculations
c. display their contents
d. all of the above
Scalar variables in C++ are passed automatically _____ to functions.
Select one:
a. by value
b. by reference
c. both a and b
d. none of the above
Assigning initial values to an array is often referred to as _____ the array.
Select one:
a. creating
b. declaring
c. populating
d. manipulating
Explanation / Answer
Most C++ compilers initialize char array elements to a space, string array elements to the empty string, and bool array elements to the keyword true.
True
You can do which of the following with elements in an array?
d. all of the above //We can do all those functionalities with array
The first variable in a one-dimensional array is assigned a subscript of _____.
a. 0 //It starts from 0 in array
Scalar variables in C++ are passed automatically _____ to functions.
c. both a and b // we can pass both by value and reference
Assigning initial values to an array is often referred to as _____ the array.
Select one:
c. populating
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.