[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
multicharacter constant not allowed?
From: |
Dirk Hoffmann |
Subject: |
multicharacter constant not allowed? |
Date: |
Thu, 15 Feb 2001 09:17:08 +0100 (MET) |
I would like to use the concise form
*(unsigned int*)Ptr=(unsigned int) 'ADQR'; /* Bank name */
to initialise a (long unsigned) integer variable. I also tried without the
casts, but I get in any case the warning:
rqr.c:751: warning: multi-character character constant
back from the GNU C compiler. Do you know what's the matter here? I thought a
four-char constant could simply and uniquely define an integer value for the
compiler, but there seems to be a subtlety.
- auto init local vars, Rutan Deborah-FDR009, 2001/02/14
- multicharacter constant not allowed?,
Dirk Hoffmann <=