posted 15 years ago
Hi,
1. short b1;
2. m1(b1 = 1);
3. m1(b1);
4. m1(b1 == 1);
in line 2. b1 is assigned 1, so b1 is a short with a value of 1.
in line 3. you call m1() with a short again, so it calls m1(short s1) and prints "short".
The point is, b1 doesn't become a byte in that code.
Did I get your problem right?
Ciao,
Tommaso
Ciao,<br /> Tommaso<br /> <br />~*~*~*~<br />There are 10 types of people, those who understand binary and those who don't.