Question: Consider the following C++ code. void foo(int x) int main() int x 2; foo(x); /l/ line to evaluate return 0; 1 7 What does variable

Consider the following C++ code. void foo(int x) int main() int x 2; foo(x); /l/ line to evaluate return 0; 1 7 What does variable x evaluate to at comment "line to evaluate"? O 2 undefined O none of these selections O 4 03
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
