Rewrite the following C++ program after removing any/all
syntactical error(s). Underline each correction done in the code :
Note : Assume all required header files are already included in the
program.
#define Area (L,B) = L*B
structure Recta
{
int Length, Breadth;
};
void main()
{
Recta R = [10,15];
cout<<Area(LengthR,Breadth.R);
}
Answers
Answered by
2
Answer:
Explanation:
#define Area (L,B) = L*B
struct Recta
{
int Length, Breadth;
};
void main()
{
Recta R = {10,15};
cout<<Area(R.Length,R.Breadth);
}
Similar questions