C++ short


Example

Denotes a signed integer type that is at least as long as char, and whose range includes at least -32767 to +32767, inclusive. This type can also be written as short int.

// (during the last year)
short hours_worked(short days_worked) {
    return 8*days_worked;
}