From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,daa9a948bbcdbea6 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-01-17 18:23:53 PST Path: gmd.de!newsserver.jvnc.net!news.edu.tw!news!nctuccca.edu.tw!howland.reston.ans.net!gatech!swrinde!elroy.jpl.nasa.gov!decwrl!crl.dec.com!crl.dec.com!utne.zk3.dec.com!sauron.zk3.dec.com!gaf From: gaf@zk3.dec.com (Gerald Feldman USG) Newsgroups: comp.unix.osf.osf1 Subject: Re: stdarg's unpredictable Date: 17 Jan 1994 22:19:24 GMT Organization: Digital Equipment Corporation, Unix Systems Group Distribution: world Message-ID: <2hf2tc$7ue@utne.zk3.dec.com> References: <1994Jan14.164003.57216@kuhub.cc.ukans.edu> Reply-To: gaf@zk3.dec.com NNTP-Posting-Host: sauron.zk3.dec.com X-Newsreader: mxrn 6.18-5 Originator: gaf@sauron.zk3.dec.com 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