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

Can you please solve this for me urgently want to make sure if my answers are correct?
What is the second partial product: 241 x 63
The graph of (x – 4)2 + (y + 6)2 = 9 has center with coordinates
Draw a circuit diagram For a circuit diagram for the for the electromagnet using you can Your circuit diagram must include the following: a cell a switch a bulb
let f(x)#-2x+11 and g(x)=x2+13 find f(-5)+g(-5)
Kevin played a trivia game. Each correct answer is worth 2 / points, and each incorrect answer is worth ­⎯/ point. What was Kevin’s score?
Can any of ya check my answer? Please?
(b) Analyze the interaction between individuals in a text. Explain how Laura's interaction with Maurice's teacher inspires Laura to make a decision about her f
Dr. Jones is interested in expanding his practice by adding a piece of radiology equipment. The basic cost of the equipment would be $79,000 for the first year.
Given that a function, g, has a domain of -20 sxs 5 and a range of 5 s 39 s 45 and that g(0) = -2 and g(-9) = 6, select the statement that could be true for ОА