Question 12: What will be printed?
Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.
What will be printed?**
#include <iostream>
using namespace std;
void func(int& a) {
cout << "Value\n";
}
void func(int x) {
cout << "lvalue\n";
}
int main() {
int a = 5;
func(a);
func(10);
return 0;
}
Pick ONE option
Show answer & explanation
Answer: A. A) 0 0
Verified technical evaluation based on core computer science and mathematical principles.
Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.