Write a C++ program that creates two one dimensional arrays “A" and “B" of size 20 elements each. The main program should get the input in the array “A" from the user and initialize array "B" with...


Write a C++ program that creates two one dimensional arrays “A

Extracted text: Write a C++ program that creates two one dimensional arrays “A" and “B" of size 20 elements each. The main program should get the input in the array “A" from the user and initialize array "B" with values "0". Your program should calculate the (number -2) of each element of array "A" and should store in the square value in corresponding positions (index) in the array “B". In the end, the main program (main function) prints the caleulated values of array “B". Also display the values in array B which are Odd (if any). Please Note: Array input, output, and other accesses must be done using pointer notation only (no subscript [ ] notation allowed).

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here