Any four challenges faced while selecting program development tools
Consider the code snippet given below:-
[Assume the necessary header files and namespaces included]
int x=10;
int main()
{ int x=20;
{ int x=30;
}
return 0;
}
Include the ‘cout’ statements at appropriate places in the program to get the output
10 20 30
What are manipulators? Write a cout statement using manipulator to print a float number right justified in the width of 10 columns with precision of 2 digits.
“OOP follows the bottom up approach of programming” Explain in short
Can a member function be declared as private member of a class? How can it be accessed?
Write the function for the following operations, using appropriate OOP concept such that the code is minimized.
Find product of two numbers
Find product of three numbers.
Find product of four numbers
Give the syntax for pass by reference? Compare pass by reference and pass by pointer(address), and conclude which one is preferable and why?