home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!sun!amdcad!weitek!pyramid!infmx!subodn
- From: subodn@informix.com (Subodh Nijsure ( Su-bo-d Ni-j-su-ray ))
- Newsgroups: comp.lang.c
- Subject: Should C compiler flag error for this?
- Message-ID: <1992Aug27.235703.5614@informix.com>
- Date: 27 Aug 92 23:57:03 GMT
- Sender: news@informix.com (Usenet News)
- Organization: Informix Software, Inc.
- Lines: 11
- Originator: subodn@godzilla
-
- For the following program should a C compiler flag an error or a warning.
-
- #include <stdio.h>
- extern int i;
- static int i=30;
- main()
- {
- printf("Value of i is %d\n",i);
- }
-
- -Subodh ( smn@netcom.com )
-