home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!spool.mu.edu!darwin.sura.net!jvnc.net!nuscc!ntuix!ntuvax.ntu.ac.sg!sa6904623
- From: sa6904623@ntuvax.ntu.ac.sg
- Subject: Re: BC++ 3.1 bug? Declaration Problem
- Message-ID: <1992Nov24.104847.1@ntuvax.ntu.ac.sg>
- Lines: 20
- Sender: news@ntuix.ntu.ac.sg (USENET News System)
- Nntp-Posting-Host: v9001.ntu.ac.sg
- Organization: Nanyang Technological University - Singapore
- Date: Tue, 24 Nov 1992 02:48:47 GMT
-
- The error was in the declaration of the pointers.
-
- The statement
- unsigned short far *ppm, *dest ;
-
- is different from
- unsigned short far *ppm ;
- unsigned short far *dest ;
-
- because the keyword (type) is "unsigned short far *", thus the first statement
- is evaluated as
- unsigned short far * ppm
- unsigned short far ** dest
-
- if you want them to be the same, the first line should read as
- unsigned short far * ppm, dest ;
-
-
- Kenneth "Automan" Tan
-
-