Which function calls are invaild

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2002
Posts: 155
Reputation: Monte will become famous soon enough Monte will become famous soon enough 
Solved Threads: 3
Monte's Avatar
Monte Monte is offline Offline
Junior Poster

Which function calls are invaild

 
0
  #1
Apr 9th, 2008
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);
Microsoft Certified Desktop Support Technician
DTS Medical Webmaster + Network Administrator
Extended64.com
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,407
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1467
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Which function calls are invaild

 
0
  #2
Apr 9th, 2008
They all look valid function calls to me. But can't be sure because we don't have the function prototype for Test().
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC