Go to w3schools.com
Close the exercise
More C++ Exercises
Close menu
Go to w3schools.com
Sign in to track your progress
×
Sign in

C++ Exercises

Syntax4 q
Statements4 q
Output Text3 q
Output Numbers3 q
New Lines5 q
Comments3 q
Variables3 q
Multiple Variables4 q
Identifiers4 q
Constants3 q
User Input4 q
Data Types4 q
Numeric Data Types3 q
Boolean Data Types3 q
Character Data Types4 q
String Data Types4 q
Arithmetic Operators4 q
Assignment Operators3 q
Comparison Operators3 q
Logical Operators4 q
Strings3 q
String Concatenation4 q
Numbers and Strings3 q
String Length3 q
Access Strings5 q
Special Characters4 q
User Input Strings3 q
String Namespace3 q
C-Style Strings3 q
Math5 q
Booleans5 q
Boolean Expressions3 q
If3 q
Else4 q
Else If3 q
Short Hand If Else3 q
Switch4 q
While Loop5 q
Do/While Loop4 q
For Loop4 q
Nested Loops4 q
The foreach Loop3 q
Break and Continue4 q
Arrays4 q
Arrays and Loops4 q
Omit Array Size4 q
Get Array Size5 q
Multi-Dimensional Arrays4 q
Structures4 q
Enums4 q
References3 q
Memory Address4 q
Pointers4 q
Dereference3 q
Modify Pointers3 q
Functions4 q
Function Parameters5 q
Default Parameters3 q
Multiple Parameters3 q
Return Values5 q
Pass By Reference3 q
Pass Arrays3 q
Function Overloading3 q
Scope4 q
Recursion3 q
OOP5 q
Classes and Objects6 q
Class Methods5 q
Constructors4 q
Access Specifiers8 q
Encapsulation6 q
Inheritance6 q
Multilevel Inheritance4 q
Multiple Inheritance4 q
Inheritance Access3 q
Polymorphism4 q
Files6 q
Exceptions7 q
Date3 q
Data Structures and STL8 q
Vectors8 q
List7 q
Stacks5 q
Queues7 q
Deque7 q
Sets7 q
Maps7 q
Iterators4 q
Algorithms7 q


by w3schools.com



 





Wrong Answer!













Completed

You have already completed these exercises!

Do you want to take them again?










Congratulations!


You completed the C++ Default Parameters Exercises from W3Schools.com



Share on: