home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l224 / 2.img / CHAPXMPL.ZIP / PLUSONE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-10-29  |  282 b   |  13 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. int  main(void)
  5.  
  6. {
  7.    int  TestValue;
  8.  
  9.    scanf("%d",&TestValue);          /* get the value to increment*/
  10.    asm  inc  WORD PTR TestValue;    /* increment it (inassembler) */
  11.    printf("%d",TestValue);          /* print the incremented value */
  12. }
  13.