Akshay Kolhapure 08 Oct,2014
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)
To view program you need to login. Click here