🟢 Վարժություն 6

Ի՞նչ կտպի ծրագիրը։
#include <iostream>
void change_arg(double arg1, double arg2) {
    arg1 = 100;
    arg2 = 20.7;
}
int main() {
	double arg1 = 0;
  double arg2 = 1.1;

  change_arg(arg1, arg2);

  std::cout << arg1 << " " << arg2;
  return 0;
}
 
To check your solution you need to sign in
Sign in to continue