Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

default function parameter in c++ code example

Example: c++ function default argument

void point(int x = 3, int y = 4);
 
point(1,2); // calls point(1,2)
point(1);   // calls point(1,4)
point();    // calls point(3,4)

Tags:

Cpp Example

Related

js object to jsong code example how to add an object into an object in javascript code example how to find all combination of terms in array java code example whats the redirect in react router code example open docker containers code example ionic 4 change ion-header color code example tensorflow compile loss code example python randint library code example java how to reverse aarray code example ternary react return code example css target parent div code example lottie npm 3.0.0 code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy