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

¿Quién es ____________________ muchacho rubio? a. el c. los b. la d. las
what is (-4) - (-9) i need the answer very fast
when does the language become barrier​
What is a good, strong topic sentence for a paragraph explaining what/about basketball?
The midpoint of AB is M(-1, -2). If the coordinates of A are (1,3), what are the coordinates of B?
"Religious faith, or the belief in the existence of God, is an important part of many people's lives." What type of definition is provided in the sentence? 1. f
Tavon has a $50 gift card that loses $2 for each 30-day period it is not used. He also has a $40 gift card that loses $1.50 for each 30-day period that it is n
Find two possible next terms if it is neither arithmetic arithmetic nor geometric: 1, 10, _, _.
PLEASE HELP ME ILL GIVE BRAINSEST. Trump's Thoughts on the Election Trump has made some statements recently about what his response will be if he loses the ele
How do you figure out the square root of a large number. i under stand squares are a number times itself but when they are not perfect squares I dont understand