This is one of those rare cases when Gil stays on topic and also I agree completely ;-)
In the C standards, these are “multi-character integer character constants” aka multi-chars and resolve to type int. All of the issues that Gil points out are "implementation dependent" Kirk Wolf Dovetailed Technologies, LLC http://coztoolkit.com Dovetailed Technologies: +1 636.300.0901 Note: Our website and domain name have changed from dovetail.com to coztoolkit.com On Wed, Aug 17, 2022, at 2:19 PM, Paul Gilmartin wrote: > On Wed, 17 Aug 2022 13:30:09 -0500, Charles Mills wrote: > > >> Some C compilers allow longer character constants > > > >It is an option for the IBM XLC compiler. I will leave looking up the > >specific option as an exercise for the reader. > > > >I recall beyond a shadow of a doubt that on the XLC compiler for Z I have > >used > > > >int foo = 'ABCD'; > > > Can of worms. > > Documentation? > > Portability of e.g. "int foo = 'ABC';": > > Blank/null fill? > > left/right justified? > > big/small-endian? > > -- > gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN