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

Given the triangles are similar, calculate the value of y to the nearest tenth.
A pack of 30 pencils cost $7.97 and a pack of 12 pencils cost $4.77. which is better? how do you know?
Help me plz.............
How do you find the distance around a triangle that had sides measuring 2-1/8 feet, 3-1/2 feet, and 2-1/2 feet?
Excepting reason and knowledge
PLEASE HELP.... Find the solution to the following equations below and identify either one solution, no solution, or infinite solutions. (Also if you can, what
what dose Jupiter do for are earth
¿Qué obras de arte o de literatura influyen en tu vida?
Can somebody please explain mean, mode, median? ☆
how do you simplify this?