Reference Alias Update

#include <iostream>
#include <cstdint>
void add_a_b(int32_t& a, int32_t b){
    a +=b;
}
int main() {
    int32_t a, b;
    std::cin >> a >> b;

    // Write your code here
add_a_b(a,b);
    std::cout << a;
    return 0;
}

Solving Approach

 

 

 

Upvote
Downvote
Loading...

Input

5 3

Expected Output

8