Question:

Why we use void in void main() in c / c program

by  |  earlier

0 LIKES UnLike

Why we use void in void main() in c / c program

 Tags:

   Report

4 ANSWERS


  1. But the current style/standard is to use:

    int main( )

    {

       //do stuff

      return 0;

    }


  2. you don't, you use

    int main()

    {

    }

  3. If you do not specify the method being void then you are required to return a value.

  4. void specifies that the function doesn't return a value. This video can explain it to you:

    http://xoax.net/comp/cpp/console/Lesson1...

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions