1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 18:24:39 +02:00

[c/en] clarify common tripping point of newbies

int foo () {
  printf("bar\n");
  int x; // this is not valid in C89+
}
This commit is contained in:
Awal Garg
2015-10-14 20:44:45 +05:30
parent 8ec133b295
commit 4599cd319f

View File

@@ -75,6 +75,9 @@ int main (int argc, char** argv)
// Types
///////////////////////////////////////
// All variables MUST be declared at the top of the current block scope
// we declare them dynamically along the code for the sake of the tutorial
// ints are usually 4 bytes
int x_int = 0;