|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Return can be more than worth the return?
Return to the main program should be a function of multiple values. (Value of the same type), it? |
Return can be more than worth the return?
| Return can be more than worth the return?
| Return can be more than worth the return?
For example, the small example below :
#include "Stdio.h>;
Int search (char * p)
{
Int a = 8;
Int b = 9;
Return (a, b);
}
Main ()
{
A[] char = "ssf";
Int c;
Int 1997a
(C, b) = search (a);
Printf ( "*****%d********\n" c);
Printf ( "*****%d********\n", b);
}
When no translation error, but the results indicate to the implementation
*****1108544020********
*****9********
Is that why? ! If unable to return to a number of values is not the time to translation errors? |
Return can be more than worth the return?
Your function return value, and valuation of the two places than you might have imagined as the work of the same vector. Instead of a comma before overlooked. Like = (a, b) is actually i=b.
So you and the procedure is equivalent to the return b b=search (b).
Really need, then you may have to make a return of some value structure, then the structure will be able to return. But most do not, the function return to a surplus rather than fight the structure, a better approach is to send a guide to the structure function (ie a variable parameter) |
Return can be more than worth the return?
-->
^_^, But pretty innovative ideas and wording. |
Return can be more than worth the return?
-->
You write perl bars |
Return can be more than worth the return?
Wow wow! But many do use perl return value to return, even different types.
C seems not.
Even know, Thank you! |
Return can be more than worth the return?
| Return can be more than worth the return?
In fact, a number of C Pointer will be able to return value.
Many of the books have. |
Return can be more than worth the return?
Return (a, b, c, d)
This phrase, which I think can be implemented.
Later, my classmates, at the test used, but also,
I find it strange.
But when I thought about it,
The comma is the expression in brackets, take a final value. |
Return can be more than worth the return?
Perl also return to a more value - if returned to duty, she would not be called function. Specific function can look at the definition of high school textbooks inside. For a definition of the region in a few x, f (x) is only one duty bound. |
Return can be more than worth the return?
Oh, but this time he completely understood. Thank you. ^_ ^ |
Return can be more than worth the return?
I still do not understand return (a, b); This, Who to talk about?
Even pass |
Return can be more than worth the return?
-->
You use return (a, b, c,1,2,3,4,5,6); Able to do. |
Return can be more than worth the return?
This issue very interesting, even Perl are involved in bringing Oh! |
Return can be more than worth the return?
Return (1, 2, 3, 4);
Lane is a parenthesis behind expression comma expression. |
Return can be more than worth the return?
-->
The return value is not a number that is the target, at a string of "Eastern" |
Return can be more than worth the return?
In function, return only to return a value. However, the use of indicators or Global Variables can return more value. |
Return can be more than worth the return?
This confused me again, a number of indicators can return to duty? Impossible!
Return (a, b, c) there is an expression in parentheses. The value of the expression is the last one, the value is c. If a, b definition than before, and the valuation. The results can then output. However, if the definition of the above, no assignment, the result could be an unpredictable value.
Why is it that the gallery would be able to return if the target is worth more than? |
| |