Which of the following string declarations is invalid?

A. char  str[9] = "Good Day";
B. char  str[ ] = "Good Day";
C. char  str = "Good Day";
D. char* str = "Good Day";


Answer: C

Computer Science & Information Technology

You might also like to view...

By default, Bluetooth authenticates connections.

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

Computer Science & Information Technology

Network hardware is what enables devices to connect to each other, but the domain controller enables them to communicate

Indicate whether the statement is true or false

Computer Science & Information Technology

Case-Based Critical Thinking QuestionsCase 4-2You have finished your coursework as a Web designer and you are preparing to teach a course about typography at the local community college. You review your notes to prepare for your first lecture.You tell students that one or two words displayed in ____ can disrupt readers just long enough to cause them to slow down and notice the words.

A. layers B. italics C. offset type D. margin type

Computer Science & Information Technology

If your workbook is password protected, it can be opened without a password

Indicate whether the statement is true or false

Computer Science & Information Technology