rajorshichowdhuri071 rajorshichowdhuri071
  • 24-08-2020
  • Computers and Technology
contestada

Write statementsto show how finding the length of a character array char [ ] differs from finding the length of a String object str.

Respuesta :

tonb
tonb tonb
  • 24-08-2020

Answer:

Length of char array: sizeof(arr)

Length of a string object: myString.length()

Explanation:

The sizeof approach is generally not recommended, since this information is lost as soon as you pass the array to a function, because then it becomes a pointer to the first element.

Answer Link

Otras preguntas

What is an ecosystem?
1. Why was it important for women to enter the workforce during the war? A They were forced to abandon families to take jobs. B They had to fight overseas in th
Solve for the unknown by using the additive inverse. Type the FULL answer in the box, without using any spaces (ex., X=5). 10X – 8 = 9X + 8
What is y + 10 = -3(x + 10) in slope-intercept form?
If 3x-9y=21 and 6x+3y=21, which of these could be a value of x or y a.-5 b.-2 c.-1 d.4 e.5 f.9
sketch the graph of each line 1,) 4 x -2 3
What is the tropopause? the boundary between the troposphere and the ionosphere the boundary between the troposphere and the stratosphere the boundary between t
4. What is the purpose of the alliteration in line 4? A. It repeats a letter sound to imitate the sound of giggling. B. It draws readers in to create a smooth f
What does the underlined dialogue reveal about Jeremy? (((PICTURE BELOW FOR ARTICLE AND ANSWERS)))
The project manager building a new underwater dolphin exhibit at Chicago's Shedd Aquarium is reviewing the chronological sequence of activities that must be com