Home TechnologyProgramming Subscribe to RSS

Why Do We Use Void In Program?

Answer Question

1 Answer - Sort by: Date | Rating

    Main() is a predefined function and the default return type is int .. So at the end of the program we should write "return 0".. If we use "void main()" no need to return anything because void is a return-type which doesn't return anything.
    0 0

    Bala121286  

    answered 3 months ago

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International