Use bitwise 'or'
#include <stdio.h> int main(void) { short i; i = 1; i = i | 32768; printf("%hd", i); return 0; }