#include <iostream>
using namespace std;
int add(int a, int b) noexcept {
return a + b;
}
int main() {
int x, y;
cin >> x >> y;
cout << "Result: " << add(x, y) << "\n";
return 0;
}
Solution Details
👉 In simple words:
This is just a safe “calculator button” for addition. By marking it noexcept, we promise it will never fail.
Significance for Embedded Developers
Input
5 7
Expected Output
Result: 12