Question: Which is true for the following code? char usertext [ 1 0 ] ; userText [ ] = ? ' B ' ; userText [
Which is true for the following code?
char usertext;
userText ;
userText ;
userText ;
usertext;
userText ;
userText ;
The first four characters of the array userText are Book.
The first five characters of the array userText are Bookt.
The compiler generates an error because element can't be overwritten.
Printing the array userText will work fine because the new string is characters and the array size is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
