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 ?
Write a program that accepts names of n cities and write functions for the following:
a. Search for a city
b. Displays the longest string
c. Sorts the names