Solved: 19 - References

This commit is contained in:
2026-08-15 17:24:26 +03:00
parent 9676acc893
commit 8b82257ed6
@@ -2,9 +2,19 @@
namespace pointers { namespace pointers {
auto double_value(const int& value) -> int { (void)value; return 0; } auto double_value(const int& value) -> int {
void increment(int& value) { (void)value; } return value * 2;
auto max_ref(const int& a, const int& b) -> const int& { (void)a; (void)b; return a; } }
auto sum_three(const int& a, const int& b, const int& c) -> int { (void)a; (void)b; (void)c; return 0; } void increment(int& value) {
value++;
}
auto max_ref(const int& a, const int& b) -> const int& {
return a > b ? a : b;
}
auto sum_three(const int& a, const int& b, const int& c) -> int {
return a + b + c;
}
} // namespace pointers } // namespace pointers