Okay I'm super confused because I read my class notes and listened to the lecture.
If all of the following functions exist in a C++ program and are prototyped first, which does
TestIt('A', int('A')) call?
A. int TestIt(char ch, char ix);
B. int TestIt(char ch, short ix);
C. int TestIt(char ch = 'A');
D. implementation dependent
E. none
Is this a trick question?
TestIt('A', 'A');
would return char char right?
Is it B because short is a type of int?
e.g. int('A')
It might be none as well.
short,intandchar(as well as some others) all are integral types, or integer types.