+ 4
The sq() function takes a short as its input argument. When passing a long double into a short, the type gets converted to a short. Because a short won't hold a floating point value, its value 1.9 becomes 1. The sq function returns 1*1, which is 1, and in turn gets stored in r. Then cout prints the value in r to the console where you see 1.