fork download
  1. #include <iostream>
  2. using namespace std;
  3. int sum(int a,int b){
  4. a=30;
  5. b=40;
  6. return a+b;
  7. }
  8. void sum1(int a,int b,int& sum,int& product){
  9. sum=a+b;
  10. product=a*b;
  11. }
  12. int main() {
  13. // your code goes here
  14. int x,y;
  15. cin>>x>>y;
  16. cout<<&x;
  17. // cout<<sum(x,y)<<x<<" "<<y<<endl;
  18. // int s=0, p=0;
  19. // sum1(x,y,s,p);
  20. // cout<<x<<" "<<y<<" "<<s<<" "<<p<<endl;
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5276KB
stdin
3 4
stdout
0x7ffcf30dd0a0