Question: Create a function that reads (by reading the dimension first and then the elements) and prints an array of integers. Read the dimension n from
Create a function that reads (by reading the dimension first and then the elements) and prints an array of integers. Read the dimension n from the keyboard. Using the function just created read 2 arrays a and b from the keyboard with the same dimension (one array first then the other). Next create a function that calculates the array sum, where each elements of sum is the sum of the corresponding elements from the 2 initial arrays:
Example:
If the first array is: 2 -1 0 8
The second array is: 0 5 0 -1
The result array is: 2 4 0 7
Read an array of chars (string; word or line from the screen). Extract and display each letter that have as position the number in the aray result; position numbering (index) in any array (the strinf is an array of chars) start from 0.
Example:
If the string is "SuperFunecstatic"
We extract the letters with the positions 2 4 0 7
the extracted letters are: p r s n
If the number for the position is negative or is bigger than the length of the string then display X for the extracted letter. (C programming)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
