Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: gaf@zk3.dec.com (Gerald Feldman USG)
Subject: Re: stdarg's unpredictable
Date: 17 Jan 1994 22:19:24 GMT	[thread overview]
Message-ID: <2hf2tc$7ue@utne.zk3.dec.com> (raw)
In-Reply-To: 1994Jan14.164003.57216@kuhub.cc.ukans.edu


In article <1994Jan14.164003.57216@kuhub.cc.ukans.edu>, anh@kuhub.cc.ukans.edu writes:

   < much code removed>
  unsigned int  a=4;
  unsigned long b=4;
  char name[]="Hello World";


  printf("a=%d, b=%d\n",a,b);

-- 
Also, as a kind of minor nit, The %d specification takes an int (eg. 32 bit
type) as its argument, and element b is a long (eg. 64 bits). You should
use %ld for longs.

Jerry Feldman

-- 
+-------------------------------------------------------------+
Jerry Feldman              USG
Mailstop: ZKO3-3/Y25       DTN:381-2970
Digital Equipment Corp.    EXT:(603)881-2970


      parent reply	other threads:[~1994-01-17 22:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-01-14 22:40 stdarg's unpredictable anh
1994-01-15 19:58 ` Daniel S. Riley
1994-01-17 22:19 ` Gerald Feldman USG [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox