Category:C: Difference between revisions

Content added Content deleted
Line 41: Line 41:


The contents of a function, if statement, etc. <b>must</b> be enclosed in curly braces for the code to count as part of that section.
The contents of a function, if statement, etc. <b>must</b> be enclosed in curly braces for the code to count as part of that section.
<lang C>int main()
<lang C>{
//this wouldn't actually compile as none of these variables were declared in this scope. More on that later.
{


if (K == 3)
if (K == 3)