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 2 numbers can you multiply to get 31? can 31 get into smaller groups?
What is 397,506 rounded to the nearest ten-thousand?
What is the basic ratio for 120:150
Magnesium (Mg) is located to the right of sodium (Na) because Mg has.... a.) Less electrons b.) Less protons c.) Both a.) And b.) d.) None of the above.
what is the answer to number 36?
what do wo factor 4x+20y ?
What is a good strategy for finding the distance between two numbers on a number line?
what happens to your muscles during a warm up?
the nile delta is called
How can you use ordinance in a sentence