Earlier in this chapter, we have used functions which either return no value or integer values. The
functions that return no value are declared as void. We have been prefixing int to functions which return
integer values. This is valid but unnecessary because the default return value of a function in C is of
type int. Thus, the following two declarations are equivalent in the sense that we need not prefix int to a
function which returns an integer value.
int add (int a, int b);
add (int a, int b);
On the other hand, whenever a function returns non-integer values, the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.