Functions
| Getting Started with C++ |
C++ Programming Course
Welcome to the complete C++ programming course, taking you from zero to hero. This course covers everything you need to know to become proficient in C++ programming, from installation and setup to advanced template metaprogramming and the standard library.
Getting Started with C++
Before you can start programming in C++, you need a compiler and text editor. In this lesson we cover {content}.
Functions
Declaration: int add(int a, int b);
Definition: int add(int a, int b) { return a + b; }
Overloading: multiple functions with same name, different params
Default parameters: int add(int a, int b = 0)
Call: result = add(3, 5);
int max(int a, int b) { return (a > b) ? a : b;
Next: Course Conclusion and Next Steps
Article author: Arthur Isaev
| I recommend our hosting beget.com |
| Write to info@aredel.com if you: |
| 1. Want to write an article for our site or translate an article into your native language. |
| 2. Want to place thematically relevant ads on the site. |
| 3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail |
| 4. Found a mistake, inaccuracy, bug, etc. on the site. ... ....... |
| 5. Articles can be shared on social media by clicking a network icon:
|