13.8k views
2 votes
In a working C program, the string literal "CBC" can be assinged to the variable word as follows without causing a compile error. char word[3]a. true.b. false

1 Answer

3 votes

Answer:

false

Step-by-step explanation:

string literal cannot be be assigned to a fixed length char array. however, it can be assigned using a char* e.g:

char* word =(char*) "CCA\0";

User Roman Kazmin
by
8.4k points