This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

new line and space

Do we have to put a new line and space after main function?

Parents
  • No.

    However, some compilers object if the final line of your source code is not properly terminated; eg,

       // your code
       :
       :
    }<EOF>

    (where <EOF> means the end of the file).

    So they want to see:

       // your code
       :
       :
    }
    <EOF>

Reply
  • No.

    However, some compilers object if the final line of your source code is not properly terminated; eg,

       // your code
       :
       :
    }<EOF>

    (where <EOF> means the end of the file).

    So they want to see:

       // your code
       :
       :
    }
    <EOF>

Children