- #1
fisico30
- 374
- 0
Trying to understand "return" in C
Hello Forum,
a function in the C language requires a "return" at the end...is that always true?
what is exactly the purpose of the return? If there is no return, we can just write void or not write anything?
I am familiar with MATLAB where there is no return...why does C requires the specification of return instead?
thanks,
fisico30
Hello Forum,
a function in the C language requires a "return" at the end...is that always true?
what is exactly the purpose of the return? If there is no return, we can just write void or not write anything?
I am familiar with MATLAB where there is no return...why does C requires the specification of return instead?
thanks,
fisico30