TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Edwards
from: Daniel Doran
date: 1995-10-23 02:04:00
subject: ANSI C

PAUL EDWARDS wrote something vaguely related to C Set ++


PE> E.g. how many people don't see 3 things in
PE> the following program that make it non-ISO?

 1: //              -- C++ comment
 2: void main(      -- int main( is the ANSI standard
 3: , char **envp   -- 3 arguments for main() is a System V Unix convention, but
                       I have yet to see a C compiler that doesn't support it.


Just curious, but do you know if ANSI C accepts the following variable
definition, and if so, is the definition likely to be portable between
big-endian and little-endian processors:

 int zees='Zz';

I've seen some compilers accept it, and others that did not.

 * KWQ/2 1.2g * "I feel very hot," grumped Tom, spontaneously.
--- QScan/PCB v1.17b / 01-0093
* Origin: La Cantina BBS * El Paso * 915-532-0332 7Gig, 6 Nodes (1:381/123)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 381/123 900 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.