Cours
Se connecterCommencer à apprendre l'IA
Cours
Se connecterCommencer à apprendre l'IA
0

The effect of a default argument can be alternatively achieved by overloading. How?

Please explain it with an example.

c++functionsargumentsoverloadingdefault
1st Jun 2020, 4:01 PM
Prashant Pant
Prashant Pant - avatar
1 Réponse
+ 3
void f(int n, char c) { //whatever } void f(int n) { f(n, 'x'); // x being default }
1st Jun 2020, 4:12 PM
HonFu
HonFu - avatar

Vous avez souvent des questions comme celle-ci ?

Apprenez de manière plus efficace, gratuitement :

  • Introduction à Python

    7.1M apprenants

  • Introduction à Java

    4.7M apprenants

  • Introduction à C

    1.5M apprenants

  • Introduction à HTML

    7.5M apprenants

Voir tous les cours
Aujourd'hui en vedette
What is slicing of data in lists ?
3 Votes
Using Def
0 Votes
please add rust? , I'm can create and write code in Rust , can you add rust in create section please?
3 Votes
Is ethical hacking good? :)
0 Votes
I have been learning code for about 2 months and I am still not good
0 Votes
How to make csharp program.cs, other Windows like the launch json and how to add other languages in the same code on ipad
0 Votes
Can someone tell me how good this coding language is? You can look through the code to find syntax in a comment
1 Votes
I am wondering if there is anything i need to know
1 Votes
C programing
0 Votes
“Algo salió mal” curso HTML text formating
0 Votes