MCQs>IT & Programming>Symbian C++>What will happen when the following Symbian C++ code is executed? Line 1 class foo { Line 2 enum A { AA }; Line 3 int f(A a = AA); Line 4 int f(B b = BB); Line 5 enum B { BB }; Line 6 };
Symbian C++ MCQs
What will happen when the following Symbian C++ code is executed? Line 1 class foo { Line 2 enum A { AA }; Line 3 int f(A a = AA); Line 4 int f(B b = BB); Line 5 enum B { BB }; Line 6 };
Answer
Correct Answer: Line 4 will produce an error because BB has not been declared above.
Explanation:
Note: This Question is unanswered, help us to find answer for this one