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.
Write a C++ program called q1.cpp. (you need to think about this a bit) (with comments) Create a function that accepts a
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am