Category:C: Difference between revisions

Content added Content deleted
No edit summary
Line 92: Line 92:
* You cannot define a variable without declaring it first.
* You cannot define a variable without declaring it first.
* Before a variable can be used, it must be defined.
* Before a variable can be used, it must be defined.





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.
Line 97: Line 100:
// 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>



==Citation==
==Citation==