Homework help for son

tld1104

Beta member
Messages
2
Location
USA
Hi...I am new here and not sure if this is the correct thread for this question but here goes.

If a function has multiple inputs, are the inputs ordered by the name of the input variables?

Thanks!
 

iPwn

..m.0,0.m..,
Messages
3,999
Location
::1
Ummm, I'll bet you'd be hard pressed to find a programmer that would say they "must" be that way, but that doesn't mean his instructional coursework doesn't specify that.

In my experience programming, input order is determined by which one you type first. Name, object type, use... those don't matter.

Again, while in the 'real world' that's not the case, I can't say what the answer to a course is because they aren't always in line with real world practices.

In practice, sequence is of no importance, as long as the calling method passes the variables in the proper order (order in which they are received)
 

tld1104

Beta member
Messages
2
Location
USA
Thank you! He got the question correct...we were stumped. I appreciate your help. Have a great day!
 
Top Bottom