Article View: alt.comp.programming
Article #44Declare an hex variable in c language
From: Olivier Lafontaine
Date: Fri, 20 Aug 1999 00:00
Date: Fri, 20 Aug 1999 00:00
21 lines
1597 bytes
1597 bytes
Hi... I'm very new to c, no I'm new to programming languages... except a bit of visual basic... My question is about declaring variables... I know how to declare decimal or float or char... but when i try to declare an hexadecimal variable I get in error when running the file... I read somewhere that it is the same as a decimal variable: int variablename; but when i associate the hexadecimal number with variablename... there is an error example: int number; number = 1e; or 1E; both doesn't work... can someone help me! thanx O.L.
Technical Details
Message-ID:
<MK4v3.612$YV3.42625@weber.videotron.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d22,4d986d8304e865d5 X-Google-Attributes: gid109d22,public X-Google-Thread: ffc1e,4d986d8304e865d5 X-Google-Attributes: gidffc1e,public X-Google-Thread: 108717,4d986d8304e865d5 X-Google-Attributes: gid108717,public X-Google-Thread: fa6f6,4d986d8304e865d5 X-Google-Attributes: gidfa6f6,public X-Google-Thread: 10dce5,4d986d8304e865d5 X-Google-Attributes: gid10dce5,public From: "Olivier Lafontaine" <o-lafontaine@canada.com> Subject: Declare an hex variable in c language Date: 1999/08/20 Message-ID: <MK4v3.612$YV3.42625@weber.videotron.net> X-Deja-AN: 514976159 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@videotron.net X-Trace: weber.videotron.net 935122988 24.200.154.156 (Fri, 20 Aug 1999 00:23:08 EDT) X-MSMail-Priority: Normal NNTP-Posting-Date: Fri, 20 Aug 1999 00:23:08 EDT Newsgroups: alt.comp.programming,comp.programming,comp.programming.threads,dk.edb.programmering,dk.edb.programmering.c