Which of the following declare an array of 5 characters, and initializes them to some known values?

a. char array[5]={'a','b','c','d','e'};
b. char array[4]={'a','b','c','d','e'};
c. char array[5]={''};
d. char array[]={'a','b','d','e'};
e. A and C
f. B and D
g. all of the above


e. A and C

Computer Science & Information Technology

You might also like to view...

What is the output of the following program fragment?

cout << static_cast(3/4) << endl; a. 3 b. 0.5 c. 0.0 d. 0.75

Computer Science & Information Technology

Choose a set of transactions for an application of your choice (other than a banking or student registration system). For each isolation level weaker than SERIALIZABLE, give an example of a schedule that produces an erroneous situation.

What will be an ideal response?

Computer Science & Information Technology

The ____________ operator is used to dynamically allocate memory and construct an object; this operator returns a pointer to the object.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following is not a possible value for the VALIGN attribute?

(a) top (b) center (c) bottom (d) baseline

Computer Science & Information Technology