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 do I round 35.26 to the nearest whole number
whats is an equivalent expression to the picture below.
(m+2)(m+3)=(m+2)(m-2) what is the answer please
log3 27=3x+6 solve this please
____________ is the practice of raising fish and other water-dwelling organisms for food A. Land Redamation B. Aquifier C. desertification  D. aquaculture
some objects have a negative charge because they have gained___?
how we know that ancient civilizations knew of and were concerned about infectious diseases
For the missing term in the geometric sequence, Find the possiblefor the missing term in the geometric sequence, Find the possible values.4, ?, 1/36
How many 6 digit number combinations are there?
Is it true that all states celebrate Memorial Day on the same day. If not what can be the other date?