Accept n integers in array A. Pass this array and two counter variables to a function which will set the first counter to the total number of even values in the array and the other to the
total number of odd values. Display these counts in main. (Hint: Pass the addresses of the counters to the function)
Write a function which accepts a number and three flags as parameters. If the number is even, set the first flag to 1.
If the number is prime, set the second flag to 1. If the number is divisible by 3 or 7, set the third flag to 1. In main, accept an integer and use
this function to check if it is even, prime and divisible by 3 or 7. (Hint : pass the addresses of flags to the function)
Accept the number of rows (m) and columns (n) for a matrix and dynamically allocate memory for the matrix.
Accept and display the matrix using pointers.Hint: Use an array of pointers.
Write a program which accepts a sentence from the user and alters it as follows:
Every space is replaced by *, case of all alphabets is reversed, digits are replaced by ?