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

A ; 1/2. B ; 1/3. C ; 2/3 D ; 4/9
At higher elevations, the boiling point of water decreases, due to the decrease in atmospheric pressure. As a result, what could be said about hard boiling an e
Ox-bow lake is formed in............. course of the river
Construct a polynomial function with the following properties: fifth degree, 2 is a zero of multiplicity 3, -2 is the only other zero, leading coefficient is 2.
This circle is centered at the origin, and the length of its radius is 6. What is the circle's equation?
How determine when to use S, l, g, aq in chemical equations
Given the triangle below, what is m
- How close did the German offensive come to Paris before being during the First Battle of the Marne? ensive come to Paris before being fought back
What is the main theme of the essay "of love" by Francis Bacon?
What mistake did the student make?