Answer to Question #244039 in C++ for ghhuh

Question #244039

What would the following program print out? (Answer without using a computer.)

1 void f( const int a = 5)

2 {

3 std :: cout << a*2 << " \ n";

4 }

5

6 int a = 123;

7 int main ()

8 {

9 f (1) ;

10 f (a ) ;

11 int b = 3;

12 f (b ) ;

13 int a = 4;

14 f (a ) ;

15 f();

16 }


1
Expert's answer
2021-09-30T02:25:22-0400

The following program will print out an error. The cout in the line is not a member of the std.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS