Reference Alias Update

#include <iostream>
#include <cstdint>

int main() {
    int32_t a, b;
    std::cin >> a >> b;
    int32_t &c = a;
    c += b;
    // Write your code here

    std::cout << a;
    return 0;
}

Solving Approach

 

 

 

Upvote
Downvote
Loading...

Input

5 3

Expected Output

8