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
Get Free Quote!
431 Experts Online