Which of the following is true about the char_arr variable? char char_arr[] = "Let Us C++!"; Ochar_arr is an array of size 10, and the last value in the array is "!". char_arr is an array of size 11, and the last value in the array is "!". char_arr is an array of size 12, and the last value in the array is "\0". char_arr is an array of size 11, and the last value in the array is "\0".

icon
Related questions
Question
Which of the following is true about the char_arr variable?
char char_arr[] = "Let Us C++!";
char_arr is an array of size 10, and the last value in the array is " !".
char_arr is an array of size 11, and the last value in the array is "!".
char_arr is an array of size 12, and the last value in the array is "\0".
O char_arr is an array of size 11, and the last value in the array is "\0".
Transcribed Image Text:Which of the following is true about the char_arr variable? char char_arr[] = "Let Us C++!"; char_arr is an array of size 10, and the last value in the array is " !". char_arr is an array of size 11, and the last value in the array is "!". char_arr is an array of size 12, and the last value in the array is "\0". O char_arr is an array of size 11, and the last value in the array is "\0".
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer