#include <iostream>
using namespace std;


int add(int a, int b = 5) { // b의 기본값 5
    return a + b;
}

int main() {
    cout << add(3) << endl;  // 3 + 5 = 8
}


Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: