Question #60543

Rewrite the following program after removing the syntax error(s) if any. Underline each correction .
(1)
#include<iostream.h>
Void main()
{
x=10,y=20;
Callfunc(x;y);
Callfunc(y);
}
Void Callfunc (int Arg1, int Arg2=20)
{
Arg1= Arg1+ Arg2
Cout<<Arg1>>Arg2;
}

Expert's answer

#include <iostream>
using namespace std;
void main()
{
    int x = 10, y = 20;
    Callfunc(x, y);
    Callfunc(y);
}
void Callfunc(int Arg1, int Arg2 = 20)
{
    Arg1 = Arg1 + Arg2;
    cout << Arg1 << Arg2;
}
http://www.AssignmentExpert.com/</iostream>

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!

LATEST TUTORIALS
APPROVED BY CLIENTS