Write a C++ program called q1.cpp. (you need to think about this a bit) (with comments) Create a function that accepts a

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a C++ program called q1.cpp. (you need to think about this a bit) (with comments) Create a function that accepts a

Post by answerhappygod »

Write a C++ program called q1.cpp. (you need to think about thisa bit) (with comments)
Create a function that accepts an integer array as a parameter(you need to look into how you can pass an array to a function).The function is called divideBy2 that divides every element in thearray by two and then prints out the contents on the screen.
Your main function will create any array, and then calleddivideBy2.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply