Re: First C program
Barbara Morris <[email protected]>
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <[email protected]> |
On 2014-04-01 04:46, frank kolmann wrote: > I have coded my first C program. One thing I noticed is that you have a numeric constant starting with zero. #define I03 02 In C, when a numeric constant starts with zero, it's an octal constant (base 8). You're ok with 02 since it means 2 in both decimal and octal. But if was a constant like 023, it would be 19 in octal (2*8 + 3). -- Barbara -- This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/c400-l or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/c400-l.