Finding the signedness of a variable.
How do we find the signedness of a given variable.
Say, int a; unsigned char b; Pass it to a macro. FindSign(a); //This should state it is signed. FindSign(b); //This should state it is unsigned. it should say if the variable is signed or unsigned. |
Depends on the lanuage. For example in C++ you could simply do this by overloading the funtion. eg.
Code:
#include <iostream> |
All times are GMT -5. The time now is 04:04 PM. |