C++ questions for practical
C++ questions for practical
1. Write a C++ program to find the largest element of a given 1-D array of
integers.?
2. Write a C++ program to separate even and odd numbers of an array of
integers. Put all even numbers first, and then odd numbers.?
3. write a C++ program to searching in 1 D-array?
4. Write a program to print count of prime number in 1-D array?
5. Write a program to prints sum of digits in 1-D array?
6. Write a program to sort array elements in descending order?
7. Write a program to prints reverse number in 1-D array?
8. Write a program to prints perfect number in 1-D array?
9. Write a program to prints sum of array elements in 1-D array?
10. What is an object? Explain how objects in 8 C++ are created and destroyed,
with the help of program to create Bank-Account Class, having data
member’s name, account number, balance and member function display
balance.