compiler used-: code blocks
without returning the "c" how is variable "d" getting its value?
#include<iostream>
using namespace std;
int add(int x,int y) {
    int c;
    c=x+y;
}
int main() {
    int a,b;
    cin>>a>>b;
    int d=add(a,b);
    cout<<d;
}