Ask Question

Write an expression that whose value is the fifth character of the string name.

+1
Answers (1)
  1. 24 December, 23:15
    0
    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]
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write an expression that whose value is the fifth character of the string name. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers