A function with return value uses return to send a result back, so you can store it in a variable or use it further.
A function without return value has no return (or doesn’t send data back), so it just runs and ends.
The difference between functions with return and without return:
A function with return value uses return to send a result back, so you can store it in a variable or use it further.
A function without return value has no return (or doesn’t send data back), so it just runs and ends.
| Rev. | Lang. | By | When | Δ | Comment | |
|---|---|---|---|---|---|---|
| en2 |
|
pokpong007 | 2025-09-08 20:57:57 | 167 | ||
| en1 |
|
pokpong007 | 2025-09-08 20:51:40 | 284 | Initial revision (published) |