Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // More tutorials at brandonhok.com
- #include <iostream>
- // Is an Oreo cookie still an Oreo cookie without the filling inside?
- // Empty Functions - Be able to recognize them
- // A function that is empty doesn't accept or returns any information.
- // What is the use? Treat it as a skeleton for a function and be able to recognize it for the moment.
- //Section 1
- void emptyChickens();
- void noBeef( void );
- int main()
- {
- emptyChickens();
- noBeef();
- system("pause");
- }
- void emptyChickens()
- {
- std::cout << "This function has no arguments" << std::endl;
- }
- void noBeef ( void )
- {
- std::cout << "This function accept no arguments either" << std::endl;
- }
- // By now I guessing you may or may not know what void means and its usages
- // Can you explain what you think it means and its practical usages?
- // You may find more information on the web
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement