summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2020-02-23 12:56:41 +0530
committerGitHub <noreply@github.com>2020-02-23 12:56:41 +0530
commit64dd0940213a0faf0803cde662599f8f6636ce75 (patch)
tree9cf6fae11db107844a4ea3ba2d9aa9ab3e23831e
parentbdeb28ebbc71ee3f53c7262ab4f265c81c6a8add (diff)
parent842b247b74a81d8e00dab83875d1f5de15db3cc7 (diff)
Merge pull request #3864 from KoenigKrote/master
[C/en] Rephrase variable declaration comments
-rw-r--r--c.html.markdown10
1 files changed, 6 insertions, 4 deletions
diff --git a/c.html.markdown b/c.html.markdown
index e5ffc379..a57be1dc 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -89,10 +89,12 @@ 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
- // (however, C99-compliant compilers allow declarations near the point where
- // the value is used)
+ // Compilers that are not C99-compliant require that variables MUST be
+ // declared at the top of the current block scope.
+ // Compilers that ARE C99-compliant allow declarations near the point where
+ // the value is used.
+ // For the sake of the tutorial, variables are declared dynamically under
+ // C99-compliant standards.
// ints are usually 4 bytes
int x_int = 0;