The function reverseArray takes an int array and reverses it. The main() function calls reverseArray and then displays the contents of the reversed array.

computer science

Description

1. The function reverseArray takes an int array and reverses it. The main() function calls reverseArray and then displays the contents of the reversed array. Complete the while loop in the reverseArray function, using no more then five statements. You may not use any [ ] inside the function.


 Identify which statements in the following C code will result in error. Use commenting and the compiler to confirm if your answers are correct. 


3. Write a coin toss function that takes no argument and returns true or false randomly, every time the function is called. Below is the incomplete funtion toss(), complete it to make it functional




Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.