1.

Give the output of the following program.#include<bit s/std C++h>using namesspace std;class Greeks{Public:void func(int x){cout<<"value of";}void func(double x){cout<<"value of";}void func(int x, int){cout<<"value of";}};int main(){Greeks obj1;obj1.func(7);obj1.func(9.132);obj1.func(85,64);return 0;}

Answer»

Output: 

value of x is 7 

value of x is 9.132 

value of x and y is 85,64



Discussion

No Comment Found

Related InterviewSolutions