summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
diff options
context:
space:
mode:
authorDimitris Kokkonis <kokkonisd@gmail.com>2020-10-10 12:31:09 +0200
committerDimitris Kokkonis <kokkonisd@gmail.com>2020-10-10 12:31:09 +0200
commit916dceba25fcca6d7d9858d25c409bc9984c5fce (patch)
treefb9e604256d3c3267e0f55de39e0fa3b4b0b0728 /c.html.markdown
parent922fc494bcce6cb53d80a5c2c9c039a480c82c1f (diff)
parent33cd1f57ef49f4ed0817e906b7579fcf33c253a1 (diff)
Merge remote-tracking branch 'upstream/master' into master
Diffstat (limited to 'c.html.markdown')
-rw-r--r--c.html.markdown13
1 files changed, 8 insertions, 5 deletions
diff --git a/c.html.markdown b/c.html.markdown
index 7975a1c2..a57be1dc 100644
--- a/c.html.markdown
+++ b/c.html.markdown
@@ -10,6 +10,7 @@ contributors:
- ["himanshu", "https://github.com/himanshu81494"]
- ["Joshua Li", "https://github.com/JoshuaRLi"]
- ["Dragos B. Chirila", "https://github.com/dchirila"]
+ - ["Heitor P. de Bittencourt", "https://github.com/heitorPB/"]
---
Ah, C. Still **the** language of modern high-performance computing.
@@ -88,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;
@@ -820,7 +823,7 @@ Best to find yourself a copy of [K&R, aka "The C Programming Language"](https://
It is *the* book about C, written by Dennis Ritchie, the creator of C, and Brian Kernighan. Be careful, though - it's ancient and it contains some
inaccuracies (well, ideas that are not considered good anymore) or now-changed practices.
-Another good resource is [Learn C The Hard Way](http://c.learncodethehardway.org/book/).
+Another good resource is [Learn C The Hard Way](http://learncodethehardway.org/c/).
If you have a question, read the [compl.lang.c Frequently Asked Questions](http://c-faq.com).