www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/17/06:07:47

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Q: Typedef riddle
Date: Sat, 16 Nov 1996 13:52:47 -0800
Organization: Alcyone Systems
Lines: 17
Message-ID: <328E37AF.44440CB8@alcyone.com>
References: <328DD331 DOT 26E4 AT stud DOT warande DOT ruu DOT nl>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Elliott Oti wrote:

> It's not a gcc bug because Borland gives a similar output,
> but -Wall gives absolutely no warnings. So what's wrong?

Operator precedence; John Aldrich answered that question.

There's another issue, though -- you don't _need_ to be passing the address
of the variable of type thing.  A thing is typedef to be an array of ints,
and an array is passed as a pointer.  Just pass the variable itself.

-- 
                             Erik Max Francis | max AT alcyone DOT com
                              Alcyone Systems | http://www.alcyone.com/max/
                         San Jose, California | 37 20 07 N 121 53 38 W
                                 &tSftDotIotE | R^4: the 4th R is respect
         "But since when can wounded eyes see | If we weren't who we were"

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019