Arguments & Returns
#include <iostream>
int add(int a, int b) {
return a + b;
}
int main() {
std::cout << add(10, 20);
}
add
is a function taking 2 ints and returning int
Comments
#include <iostream>
int add(int a, int b) {
return a + b;
}
int main() {
std::cout << add(10, 20);
}
add
is a function taking 2 ints and returning int