Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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)
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #function #default #argument
ADD COMMENT
Topic
Name
8+6 =