home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / qc_prog / chap16 / shiftadd.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-04-07  |  160 b   |  12 lines

  1. /* shiftadd.c -- shift and add numbers               */
  2.  
  3. main()
  4. {
  5.     int x = 0x12;
  6.     int y;
  7.  
  8.     y = x << 8 + 2;
  9.     printf("y is 0x%x\n", y);
  10. }
  11.  
  12.