Professional Documents
Culture Documents
Q4. Define a program to find out whether a given number is even or odd.
Q5. Define a function to calculate power of a number raised to other i.e. ab using recursion
where the numbers 'a' and 'b' are to be entered by the user.
POINTERS
Q6. Write a program to find out the greatest and the smallest among three numbers using
pointers.
Q7. Write a program to print the value of the address of the pointer to a variable whose value is
input from user.
Q8. Write a program to print a number which is entered from keyboard using pointer.
Q9. Write a program to find out the greatest and the smallest among three numbers using
pointers.
Q10. Write a C++ program to find the max of an integral data set. The program will ask the user
to input the number of data values in the set and each value. The program prints on screen
a pointer that points to the max value.