Where does void main() come from?

This is a discussion on Where does void main() come from? within the C++ Programming forums, part of the General Programming Boards category; I know void main() is wrong, to use int main() return 0, and why, but where does void main() come ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    559

    Where does void main() come from?

    I know void main() is wrong, to use int main() return 0, and why, but where does void main() come from? Is it from C, earlier versions of C++, or what? Even some MSDN examples use void main().

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    Mostly all the crap books which assume that you're using the crap M$ compilers which traditionally have let you get away with void main.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 09:25 AM
  2. can someone help me with these errors please code included
    By geekrockergal in forum C Programming
    Replies: 7
    Last Post: 02-10-2009, 01:20 PM
  3. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  4. need help with handelling multiple source files
    By DarkMortar in forum C++ Programming
    Replies: 38
    Last Post: 05-26-2006, 10:46 PM
  5. getting a headache
    By sreetvert83 in forum C++ Programming
    Replies: 41
    Last Post: 09-30-2005, 05:20 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21