943,752 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 538
  • C++ RSS
Apr 9th, 2008
0

Which function calls are invaild

Expand Post »
Hey guys i'm taking a c++ class and I know this is easy material but im not sure if a function call can have like m+n or FMAX and stuff. Any help with this would be great thanks.

Determine which of the following function calls are invalid and explain why. Indicate if implicit type coercion takes place and any type casting required; specify the result of the conversions.

a. Test(z, y, m);
b. Test(x, y, 8.5);
c. Test(m, y, n);
d. Test(25.5, 15, x);
e. Test(x, y, m + n);
f. Test(a, b, x);
g. Test(y, x, 10);
h. Test(y + z, y - z, m);
i. Test(FMAX, FMAX, 10);
j.Test(z, y, x);
k.Test(x, y, m, 10);
lTest(x, y, IMAX);
Reputation Points: 50
Solved Threads: 3
Junior Poster
Monte is offline Offline
155 posts
since May 2002
Apr 9th, 2008
0

Re: Which function calls are invaild

They all look valid function calls to me. But can't be sure because we don't have the function prototype for Test().
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: AVL tree ?
Next Thread in C++ Forum Timeline: 3D Dynamic Memory





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC