Skip to content

Tag Archives: Function Overloading and Default Arguments

Output of following program? #include <iostream> using namespace std;    int fun(int=0, int = 0);    int main() {   cout << fun(5);   return 0; }… Read More
Predict the output of following C++ program. include<iostream> using namespace std;     class Test { protected:     int x; public:     Test (int i):x(i) { }     void… Read More
Which of the following overloaded functions are NOT allowed in C++? 1) Function declarations that differ only in the return type int fun(int x, int… Read More
Which of the following in Object Oriented Programming is supported by Function overloading and default arguments features of C++. (A) Inheritance (B) Polymorphism (C) Encapsulation… Read More

Start Your Coding Journey Now!