what is the purpose again of the "void" and the empy ( ) after stuff?

Forum Archive what is the purpose again of the "void" and the empy ( ) after stuff?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5609
    andrewm2211
    Participant

      what is the purpose again of the “void” and the empy ( ) after stuff?

      #24072
      Jonathan Gonzalez
      Participant

        void just means we’re not returning anything within that function/method. If you see something like “int myIntFunction ()” it means you’ll return an int value. The parenthesis are typically used with parameters if you have any. If you don’t have parameters, you just keep them empty.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘what is the purpose again of the "void" and the empy ( ) after stuff?’ is closed to new replies.