Chrisis6937 Chrisis6937
  • 11-02-2018
  • Computers and Technology
contestada

Write an expression that whose value is the fifth character of the string name.

Respuesta :

roger48118
roger48118 roger48118
  • 11-02-2018
int j;
j="name"[4];
//   you   could  do
j=0;   //  since name   has four letters  the fifth  character is the terminating 0
now  if the string  name is  name
you   could do
j=name[4];  // or even    4[name] 

Answer Link

Otras preguntas

What is the momentum of a 3 kg bowling ball moving at 3 m/s?
Write the value of the given digits? The 7s in 6,778 The 9s in 990,250 The 1s in 2,011,168
The period of time under the reign of Queen Elizabeth first is common referred to as the
Caroline's coffee shop sells a refill mug for $8.95. Each refill cost $1.50. Last month Sean spent $26.95 on a mug and refills. how many refills did she buy?1.
-12 > -2/5w-16 the -2/5w is a fraction
explain how you can use a model to find 6 times 17
How did the US Government sell World War 1 to the nation
How do you solve the f(x) equation?
Bella made apple pie. She used of a tablespoon of cinnamon and of a tablespoon of nutmeg. How much more cinnamon than nutmeg did Bella use?
Which correctly describes the roots of the following cubic equation x^3-5x^2+3x+9=0? A. Three real roots, each with a different value B. One real root and to co