Thread: runtime error for using void main in gcc compiler

  1. #1
    Registered User
    Join Date
    Nov 2012
    Posts
    50

    runtime error for using void main in gcc compiler

    When I use void main in the code it compiles successfully but gives an runtime error on gcc compiler..But when void is replaced by int then it doesnot show any errors.What is the reason behind this behaviour?

  2. #2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No compiler/runtime error?
    By lkr1919 in forum C Programming
    Replies: 4
    Last Post: 06-19-2012, 11:57 AM
  2. [DEBATE]int main VS void main?
    By sudox in forum C++ Programming
    Replies: 20
    Last Post: 11-26-2010, 03:18 PM
  3. Why do people still use main() or main(void)?
    By Christopher2222 in forum C Programming
    Replies: 18
    Last Post: 06-06-2007, 06:34 PM
  4. void main(), int main(), argc, argv[]????
    By Jonny M in forum C Programming
    Replies: 3
    Last Post: 03-06-2002, 09:12 AM
  5. void main() return error code 0 ?
    By Manish in forum C Programming
    Replies: 7
    Last Post: 02-16-2002, 02:07 AM

Tags for this Thread