给定以下代码,
1 void func(int& x) { 2 x = x * 2; 3 } 4 5 int a = 5; 6 func(a);
执行上述代码后,变量a的值为( )。
5
10
15
20