Question: What is the output of the following #include ?code using namespace std; int fun(int a, int b = 1, int c=2) { } retum

What is the output of the following #include ?code using namespace std;  

What is the output of the following #include ?code using namespace std; int fun(int a, int b = 1, int c=2) { } retum (a+b+c); int main() { cout < < fun(12,,2); } retum 0;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The provided code has a few syntax errors that need to be corrected The corrected code shoul... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!