Home TechnologyProgrammingC++ Subscribe to RSS

Why Do We Use Void In C++?

Answer Question

2 Answers - Sort by: Date | Rating

    Every Functions returns some value after its execution when it is called.
    So we should write void before function name if we dont need any return type.
    1 0

    Alon_nad 

    answered 4 months ago

      The word void means nothing..........when a function return no value, it returns nothing or void.
      Without writing void, you can write return(0) in the end the program
      0 0

      Gulzar06 

      answered 4 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