Category:C: Difference between revisions

Content added Content deleted
Line 119: Line 119:


Functions work the same way. You can declare a function without defining what it does.
Functions work the same way. You can declare a function without defining what it does.
<lang C> int foo(int bar);
<lang C>int foo(int bar);
// The function foo was declared. It takes an integer as an argument and returns an integer.
// The function foo was declared. It takes an integer as an argument and returns an integer.
// What it actually does is currently unknown but can be defined later.</lang>
// What it actually does is currently unknown but can be defined later.</lang>