home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!destroyer!caen!sdd.hp.com!decwrl!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!news.service.uci.edu!beckman.com!dn66!a_rubin
- Newsgroups: comp.lang.c
- Subject: Re: Is this ANSI C?
- Message-ID: <a_rubin.721332901@dn66>
- From: a_rubin@dsg4.dse.beckman.com (Arthur Rubin)
- Date: 9 Nov 92 18:15:01 GMT
- References: <1dhkrtINNj99@duvel.cs.ubc.ca>
- Organization: Beckman Instruments, Inc.
- Keywords: A bet
- Nntp-Posting-Host: dn66.dse.beckman.com
- Lines: 21
-
- In <1dhkrtINNj99@duvel.cs.ubc.ca> hassan@cs.ubc.ca (Moustafa Hassan) writes:
-
- >#include <stdio.h>
- >void main(void)
- >{
- > printf("hello world\n");
- >}
-
- >To settle a dispute, would someone please tell me whether the above
- >is ANSI C. I claim that 'main' (according to the pure ANSI standard)
- >must return an integer value, but nonetheless, some non-purists claim
- >that the above is ANSI. Please do not respond via email; I want
- >my opponent (8^) to be able to see all the messages.
-
- You are correct. (Many compiler/OS combinations don't care, except they
- may produce extraneous error messages on termination.)
- --
- Arthur L. Rubin: a_rubin@dsg4.dse.beckman.com (work) Beckman Instruments/Brea
- 216-5888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal)
- My opinions are my own, and do not represent those of my employer.
- My interaction with our news system is unstable; please mail anything important.
-