Suppose I have mytype that could be defined as either signed (int, short, long) or unsigned. And I don't know what the type is passed in.Code:
typedef int mytype;
//typedef unsigned int mytype;
bool isSigned(mytype x)
//how to tell if mytype is a signed type or not?
How do I tell if mytype is a signed type or not?