Question: I. Which of the following statements about characters and strings in C and Java are true? 1. A string in C takes about half
I. Which of the following statements about characters and strings in C and Java are true?
1. A string in C takes about half the memory as the same string in Java.
2. Strings are just an informal name for single-dimension arrays of characters in C and Java.
3. Strings in C and Java use null (0) to mark the end of a string.
4. Operations on strings, like length, are faster in C than in Java.
II. Which type of variable that can contain 1,000,000,000ten takes the most memory space?
1. int in C
2. string in C
3. string in Java
Step by Step Solution
3.40 Rating (150 Votes )
There are 3 Steps involved in it
I Lets evaluate each statement 1 This statement is not necessarily true The memory usage for strings ... View full answer
Get step-by-step solutions from verified subject matter experts
