Neither is more correct, so take your pick. The empty return;
statement is provided to allow a return in a void
function from somewhere other than the end. No other reason I believe.
More Related Contents:
- in c: func(void) vs. func() [duplicate]
- Need for prefixing a function with (void)
- Which library has power function? [closed]
- error: incompatible types for a function that returns float in C
- Changing address contained by pointer using function
- strdup() – what does it do in C?
- Passing an array as an argument to a function in C
- C function syntax, parameter types declared after parameter list
- Nested function in C
- Must declare function prototype in C? [duplicate]
- Why cast an unused function parameter value to void?
- Macro vs Function in C
- Passing multidimensional arrays as function arguments in C
- Pass an array to a function by value
- X,Y passing size for the array in C function
- Why must the variable used to hold getchar’s return value be declared as int?
- strcpy() return value
- What is this strange function definition syntax in C? [duplicate]
- What does ‘sizeof (function name)’ return?
- C function calls: Understanding the “implicit int” rule
- Returning Arrays/Pointers from a function
- When is an array name or a function name ‘converted’ into a pointer ? (in C)
- Manipulate multidimensional array in a function
- Function declaration inside of function — why?
- What does (void)var actually do?
- Counting words in a string – c programming
- How can I malloc a struct array inside a function? Code works otherwise
- Why is the size of a function in C always 1 byte?
- What is the function of an asterisk before a function name?
- C pointer notation compared to array notation: When passing to function