Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the function prototype, both MessageBeep() and MessageBoxA() return an INT. MessageBeep() is declared as a subroutine because its return value is not used. However, MessageBoxA() is declared as a function because its return value is used (to determine which button the user clicked on).

...