Given the snippet of code below:
template<int n, double m>
void function(int x=n){
double y=m;
int array[n];
….
}
void main () {
function<1+2,2>(8);
}
when the function is compiled is x going to be 3 or 8 (as n is just the default parameter)?