Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPA Topic 1 Question 85 Discussion

Actual exam question for C++ Institute's CPA exam
Question #: 85
Topic #: 1
[All CPA Questions]

What is the output of the program given below?

#include

using namespace std;

int main (int argc, const char * argv[])

{

int i=10;

{

int i=0;

cout<

}

cout<

return 0;

}

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Timothy
11 months ago
So, the correct answer is B) compilation error.
upvoted 0 times
...
Anika
12 months ago
I agree, the code will give a compilation error.
upvoted 0 times
...
Tammara
12 months ago
I think it will not compile because s4 is not declared.
upvoted 0 times
...
Hillary
1 years ago
B) compilation error
upvoted 0 times
...
Denny
1 years ago
What will happen when you attempt to compile and run the following code?
upvoted 0 times
...

Save Cancel