What does this code produces
#include<iostream> using std::cout, std::endl; void divideBy(double& x, int& div) { x /= div; } int main() { double x = 3; divideBy(x, 2); cout << x << endl; }
It outputs 1.5 in the console
An execution error
A compilation error
An undefined behavior