Lexicographic ordering of punctuation marks

M

masood.iqbal

What is the standard C/C++ lexicograhic ordering of punctuation
characters with respect to each other and the alphanumeric characters?

--Masood
 
K

Keith Thompson

What is the standard C/C++ lexicograhic ordering of punctuation
characters with respect to each other and the alphanumeric characters?

There is none. C requires the digits '0' through '9' to be
consecutive; everything else is implementation-specific.
 
P

Peter Koch Larsen

What is the standard C/C++ lexicograhic ordering of punctuation
characters with respect to each other and the alphanumeric characters?

--Masood
There is none. Ordering depends on the locale used and will vary from
country to country. For the standard C-locale, my guess is that the ordering
depends on the underlying character set. For ASCII and related codepages, it
will most likely be numerical order.

/Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top