M
Michael Gaab
How would I force the compiler to throw an error for the following:
function signature -
void foo(short);
function call -
foo('d');
My compiler does not complain when I call foo() with a character argument.
I am assuming that the compiler does some type casting or that char's are
interpreted as a byte. Not exactly sure.
At any rate how do I force the compiler throw a error?
thanks, Mike
function signature -
void foo(short);
function call -
foo('d');
My compiler does not complain when I call foo() with a character argument.
I am assuming that the compiler does some type casting or that char's are
interpreted as a byte. Not exactly sure.
At any rate how do I force the compiler throw a error?
thanks, Mike