3 Topics

Member Avatar for
Member Avatar for Charles_6

I am trying to modify a program so that it used 2 variables rather than one. I have tried to get help through the other discussions on this topic but they are all talking about passing by reference not value. My code is: #include < iostream > using std::cout; using …

Member Avatar for ann.mughal.5
0
205
Member Avatar for pattmorter

I am working on a practice exam right now and I came across a write-your-own code problem that I can't figure out. The question is: > Modify your first function. In addition to returning the greatest value by pass-by-value, you should also sent a true/false value back to main() if …

Member Avatar for pattmorter
0
213
Member Avatar for chiiqui

I am once again experimenting and Only to find out that java is pass by value, how do I actually manipulate a method or an array that has been pass to another method? for example [CODE]int[]a ={1,2,3,4,5,6}; modify(a); ________________________ void modify(int[] aTest){ aTest[1]=2; }[/CODE] //take note that those arrays are …

Member Avatar for JamesCherrill
0
245

The End.