int i; short s; i = 1024*1024+1 s = i cout << " i = " << i << ", s = " << s << endl; produces i = 1048577, s = 1
int i; float f; f = 7.0/2.0 ; cout << " i = " << i << ", f = " << f << endl; Will Produce i = 3, f = 3.5