close-red

CS605 - Software EngineeringII

Question(s) similar to the following:

Is it possible to define two functions as given below. Justify your answer.
func(int x, int y)
func(int &x, int &y)

Question 1: Is it possible to define two functions as given below. Justify your answer.
func(int x, int y)
func(int &x, int &y)

Answer: Suggest Edit

Yes, function can be defined in both given ways, as in function no.1 , function is calling the variable by its value (which is default function call method). In the second function, function call is done by using call by reference methos.

Similar Questions:

Question 2: Is it possible to define two functions as given below. Justify your answer.
func(int x, int y)
func(int &x, int &y)

Answer: Suggest Edit

Yes, function can be defined in both given ways, as in function no.1 , function is calling the variable by its value (which is default function call method). In the second function, function call is done by using call by reference methos.
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

?