Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Functions:
- void is used when your function doesn't return anything.
- For example.
- int main()
- {
- return 0; //It returns an integer because it's an int function.
- }
- //but
- void nameForFunction() //You don't have to return anything because you used void.
- {
- cout << "Hello" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement