CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer

A: This example code gets a char array from the input string and loops through it to populate a second char array. The for loop uses two variables, i is incremented and j is decremented at each pass. The output array could be used to create a new string or output directly, as in this case.

… full answer hidden

Click for full answers

Premium members click below for full answer
How can I reverse the characters in a string?

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager