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

How does specialization by workers benefit the firms employing them?
What nickname was give to Ivan IV?
how do you say how are you in Spanish?
what does this sentence mean? please describe it for me... In the absence of contact with the real world, the human imagination can produce a distorted percepti
PowerPoint provides a wide variety of ____ shapes that can add visual interest to a slide.
What mass precipitate will form of 1.50 L of highly concentrated Pb(Clo3)2 is mixed with 0.300 L of 0.110 M NaI
Choose the answer that demonstrates correct separation of the elements in a series. They could go with Delilah Jim or Elaine and Debby Sandra and Lynn could g
zach deposits $15,000 into his savings account. his savings account has an annual interest rate of 1.4%. how much money in interest will zach earn if he keeps t
What is 5/100 as a decimal
I need help on number 17 and 18 on how to find the area of the figure