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

how many different (non-conguerent) triangles  have integer side lengths and perimeter 2014
who invented watermelon
How does Sac Fungi move?
What is mutation and DNA Replication?
How did the British challenge U.S. Neutrality in the war between France and Britain?
I really need help on geometry
What is (2x-3) squared?
i dont get what evaluate 11.4n when n=5,n=6.5,and n=10.Please help
President Woodrow Wilson's statement "The world must be made safe for democracy" was made to justify his decision toa. end United States imperialism in Latin Am
how many different (non-conguerent) triangles  have integer side lengths and perimeter 2014