Find the C program language Spell-it-out! by CodeChum Admin Are you intimidated with complicated words? Don't be! The trick is to break it down letter by letter! Let’s create a program that prints out the character in the array index indicated by the input integer. For example, if the array has 3 character elements, 'j', 'r', and 'd', and the inputted integer value is 1, then we print 'r' because 'r' is found at index 1. Instructions: In the code editor, you are provided with an array of characters (or a string). Your task is to ask the user for an integer input which represents the index and then print out the character of the string found at that index. Input 1. Index of the array Output Enter the index: 4 r
Find the C program language
Spell-it-out!
by CodeChum Admin
Are you intimidated with complicated words? Don't be! The trick is to break it down letter by letter!
Let’s create a program that prints out the character in the array index indicated by the input integer. For example, if the array has 3 character elements, 'j', 'r', and 'd', and the inputted integer value is 1, then we print 'r' because 'r' is found at index 1.
Instructions:
In the code editor, you are provided with an array of characters (or a string).
Your task is to ask the user for an integer input which represents the index and then print out the character of the string found at that index.
Input
1. Index of the array
Output
Enter the index: 4
r
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images