Can you overload a function depend only on whether parameter, C/C++ Programming

Can you overload a function depend only on whether a parameter is a value or a reference?

A: No. Passing by value and reference looks identical to the caller.

 

Posted Date: 3/20/2013 3:42:35 AM | Location : United States







Related Discussions:- Can you overload a function depend only on whether parameter, Assignment Help, Ask Question on Can you overload a function depend only on whether parameter, Get Answer, Expert's Help, Can you overload a function depend only on whether parameter Discussions

Write discussion on Can you overload a function depend only on whether parameter
Your posts are moderated
Related Questions

A: Provided that function parameter is "const reference", compiler create temporary variable in following two ways. a) The actual argument is the correct type, however it isn't

Define the following Window class : - integer  data members, width and height - a constructor  that accepts two integer  parameters  (width followed by height) and uses them to ini

w.a.p to find outWrite a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

#queComputers are frequently used in check-writing systems, such as payroll and accounts payable applications. Many stories circulate regarding weekly pay- checks being printed (by

Q: however shouldn't I always use a printOn() method instead of a friend function? A: No. The usual cause people wish to always use a printOn() method instead of  a friend fu

flow chart for push operation in stack

Binary search in array: - C program: Write a program in c to define binary search in array. void main()                 {                 clrscr();

You are going to write a function that computes the total interest charged on a credit card before it is paid off. List all the inputs the function will need.