What is wrong with the following attempted c-string declaration and initialization?

char str1[5]={'a', 'b', 'c'};

a. There are only 3 values in the braces
b. The single quotes should be double quotes
c. The values do not constitute a c-string
d. nothing


d. nothing

Computer Science & Information Technology

You might also like to view...

Which of the following is aligned on the left edge of a cell by default?

A. value B. label C. formula D. number

Computer Science & Information Technology

Write SQL statements to create a table EMPLOYEE_BACKUP backup of EMPLOYEE table shown in Figure 3.6.

What will be an ideal response?

Computer Science & Information Technology

Which of the following is used in large organizations to find the right person to collaborate on an issue or on an opportunity?

a. Electronic bulletin boards b. Electronic yellow pages c. Electronic enterprise systems d. Electronic corporate directories

Computer Science & Information Technology

In XSLT, a variable can store a section of code.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology