Short I;
memcpy(& amp; I,c,sizeof(short));
printf("i=%d\n ",I);
Output: i=- 100
Note that multibyte integer values are high or low and need to be exchanged.