Which of the following correctly initializes the name array
Which of the following correctly initializes the name array with the name Jack Jones?
A. char name[15]= \"Jack Jones\"; B, char name[ ]= \"Jack Jones\"; C. char name[ ] = {\'J\',\'a\',\'c\', \'k\', \' \', \'J\', \'o\', \'n\',\'e\',\'s\', \'\\0\'}; D. All of the above.
Solution
only A is true.
C becomes true if char name[15]= {\'J\',\'a\',\'c\', \'k\', \' \', \'J\', \'o\', \'n\',\'e\',\'s\', \'\\0\'};
and if B follows A
![Which of the following correctly initializes the name array with the name Jack Jones? A. char name[15]= \ Which of the following correctly initializes the name array with the name Jack Jones? A. char name[15]= \](/WebImages/24/which-of-the-following-correctly-initializes-the-name-array-1059828-1761553497-0.webp)