home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10882 < prev    next >
Encoding:
Text File  |  1992-11-24  |  902 b   |  32 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!jvnc.net!nuscc!ntuix!ntuvax.ntu.ac.sg!sa6904623
  3. From: sa6904623@ntuvax.ntu.ac.sg
  4. Subject: Re:  BC++ 3.1 bug?  Declaration Problem
  5. Message-ID: <1992Nov24.104847.1@ntuvax.ntu.ac.sg>
  6. Lines: 20
  7. Sender: news@ntuix.ntu.ac.sg (USENET News System)
  8. Nntp-Posting-Host: v9001.ntu.ac.sg
  9. Organization: Nanyang Technological University - Singapore
  10. Date: Tue, 24 Nov 1992 02:48:47 GMT
  11.  
  12. The error was in the declaration of the pointers.
  13.  
  14. The statement
  15.     unsigned short far *ppm, *dest ;
  16.  
  17. is different from
  18.     unsigned short far *ppm ;
  19.     unsigned short far *dest ;
  20.  
  21. because the keyword (type) is "unsigned short far *", thus the first statement
  22. is evaluated as
  23.     unsigned short far *    ppm
  24.     unsigned short far **    dest
  25.  
  26. if you want them to be the same, the first line should read as
  27.     unsigned short far *    ppm, dest ;
  28.  
  29.  
  30. Kenneth "Automan" Tan
  31.  
  32.