🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.programming
Article #43

Re: Declare an hex variable in c language

#43
From: China Blue
Date: Thu, 19 Aug 1999 00:00
12 lines
1530 bytes
/ int number;
/ number = 1e; or 1E;

In C, use 0x1e or 0x1E.

Do not start numbers with 0, that is octal, 012 == 10.

-- 
Collective Against Consensual Sanity 
http://www.angelfire.com/ca3/cacs
v0.1 is sort of up.
For a free CACS T-shirt send $42 shipping and handling.
Technical Details
Message-ID: <saratoga-1908992027250001@ppp-206-170-5-97.sntc01.pacbell.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MK4v3.612$YV3.42625@weber.videotron.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d22,4d986d8304e865d5,start
X-Google-Attributes: gid109d22,public
X-Google-Thread: fa6f6,4d986d8304e865d5,start
X-Google-Attributes: gidfa6f6,public
X-Google-Thread: 10dce5,4d986d8304e865d5,start
X-Google-Attributes: gid10dce5,public
X-Google-Thread: 108717,4d986d8304e865d5,start
X-Google-Attributes: gid108717,public
X-Google-Thread: ffc1e,4d986d8304e865d5,start
X-Google-Attributes: gidffc1e,public
From: saratoga@myremarq.com (China Blue)
Subject: Re: Declare an hex variable in c language
Date: 1999/08/19
Message-ID: <saratoga-1908992027250001@ppp-206-170-5-97.sntc01.pacbell.net>
X-Deja-AN: 514978371
References: <MK4v3.612$YV3.42625@weber.videotron.net>
X-Complaints-To: abuse@swbell.net
X-Should-not: You're not allowed.
X-Should: Prancing green elves on yellow daisy fields.
X-Trace: typhoon01.swbell.net 935123306 206.170.5.97 (Thu, 19 Aug 1999 21:28:26 PDT)
Organization: Collective Against Consenual Sanity
X-Hello-Kitty: meow meow.
X-Newsgroup-Bomb: Crossposted to heck and back.
NNTP-Posting-Date: Thu, 19 Aug 1999 21:28:26 PDT
Newsgroups: alt.comp.programming,comp.programming,comp.programming.threads,dk.edb.programmering,dk.edb.programmering.c