close-red

CS605 - Software EngineeringII

Question(s) similar to the following:

Identify the errors in the following member operator function and also correct them.
math * operator(math m);
math * operator (math m)
{
math temp;
temp.number= number * number;
return number;
}

Question 1: Identify the errors in the following member operator function and also correct them.
math * operator(math m);
math * operator (math m)
{
math temp;
temp.number= number * number;
return number;
}

Answer: Suggest Edit

The errors are in the arguments of the member operation function and also in the body of operator member function. Correct function should be

math *operator (math *m) {
math temp;
temp = m;
temp.number= number * number;
return temp.number;
}
Page. No. 9/15

Similar Questions:

Question 2: Identify the errors in the following member operator function and also correct them.
math * operator(math m);
math * operator (math m)
{
math temp;
temp.number= number * number;
return number;
}

Answer: Suggest Edit

The errors are in the arguments of the member operation function and also in the body of operator member function. Correct function should be

math *operator (math *m) {
math temp;
temp = m;
temp.number= number * number;
return temp.number;
}
Page. No. 9/15
Past Papers of CS605 - Software EngineeringII
Sponsored

Attach VULMS for better learning experience!
Attach VULMS Account

Our VULMS adds features of MDBs and lets your populate VU subjects automatically.

Tajweed Classes (Learn Quran with Tajweed)
Learn Holy Quran with Tajweed

Try our 3 days free demo now! Online online holy quran tajweed classes are useful to learn reading holy quran with tajweed.

Gegasoft POS/CRM Software
Gegasoft Point of Sale/Customer Relationship Managemnet Software

Gegasoft Point of Sale/Customer Relationship Management software is an accounting software to fulfill your business needs.

Sponsored

?