im sorry for not making it clear. act i want to ask, what is the data type of unknown parameter. like q. it can be either int or double. and we do not know what is the type will be inserted by the user.
Helo,
im doing overloading function.
example
class a
{
... example(int a)
... example(double b)
};
int main()
{
a. b;
cout << "Enter value";
cin>>q;
b.example(q)
}
what is q's data type ?