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 was the point of view of this cartoon regarding the spoils of the system? Provide details to support your answer.​
Write what kind of figure of speech, if it is metaphor, simile, and personification. Write your answer in all small letters. 26. The tree danced in the wind. 1
rational form of 0.412
Answer picture please
During the Heian Period in Japan, developments in which areas had the greatest impact on the creation of a Japanese national culture? Select two correct answers
HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!I am b0red!!!!!!!!!!!!Someone talk to me please!!!!!!!!!!!!!
Daphne contracts with speedy builders inc. To construct a six-foot fence around her yard. Daphne’s neighbor rando is delighted because daphne’s fence will borde
The arrival of the sunlight was first made clear by
In this clip, Lori starts the discussion about the Ericsson study by saying "the 'stars' all have one thing in common: they all practiced way more than the othe
Can someone please look at the picture and help me find which one is true