runtime error for using void main in gcc compiler

This is a discussion on runtime error for using void main in gcc compiler within the C Programming forums, part of the General Programming Boards category; When I use void main in the code it compiles successfully but gives an runtime error on gcc compiler..But when ...

  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, 02: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, 08:12 AM
  5. void main() return error code 0 ?
    By Manish in forum C Programming
    Replies: 7
    Last Post: 02-16-2002, 01:07 AM

Tags for this Thread


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