summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
Commit message (Collapse)AuthorAgeLines
* Added missing information about scanfYash2022-10-10-28/+35
|
* It's C, not cJonathan2022-08-01-1/+1
|
* [c/en] clarity, errata, and grammar in array section (#4102)krotera2022-01-04-17/+36
| | | | | | | | | | | | | | | | | | * [c/en] clarity, errata, and grammar in array section - [x] I solemnly swear that this is all original content of which I am the original author - [x] Pull request title is prepended with `[language/lang-code]` (example `[python/fr-fr]` or `[java/en]`) - [x] Pull request touches only one file (or a set of logically related files with similar changes made) - [x] Content changes are aimed at *intermediate to experienced programmers* (this is a poor format for explaining fundamental programming concepts) - [x] If you've changed any part of the YAML Frontmatter, make sure it is formatted according to [CONTRIBUTING.md](https://github.com/adambard/learnxinyminutes-docs/blob/master/CONTRIBUTING.markdown) - [x] Yes, I have double-checked quotes and field names! * Overlooked type uniformity * Improve 80 col alignment and clarify loop control var declaration * Remove agrammatical comma * Mention typedef in struct declaration
* [c/en] mostly word clarification and extra descriptions (#4222)awschult0022021-08-24-16/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds extra clarity to enum value assignment. The previous statement shows only 1 way to declare enums, and it happens that they specify a starting value. I clarify that a starting value is not necessary and that all enum value could contain user specified values. * Added clarity to `includes` section. specified that angle brackets are for system libraries and not just standard libs. I also added an example of relative paths in the local include statements. * Added more clarity for function prototyping and main return vals. I cleaned up some formatting; then added some clarity to how function prototyping works, as well as recommend techniques. * Fixed the mention of character sizes. they are not always 1 byte * Added clarity about floating point arithmetic. The previous comments on floating points made it feel like there was something broken with doing comparison and arithmetics with floating point types. I added clarity about how floats are stored in memory and why they seem to behave strangly when used in arithmetic expressions. * reworded boolean stuff for better clarity on _Bool type in C99 * Adds not about binary assignment * Added clarity for value roll over * Added section on multiple return values. C doesnt allow returning of multiple values, so i added a section on returning multiple values through pointers. * added section break for printing special characters * fix typo Co-authored-by: Andre Polykanine <ap@oire.me> * fix typos Co-authored-by: Andre Polykanine <ap@oire.me> * fix markdown syntax Co-authored-by: Andre Polykanine <ap@oire.me> * fix markdown syntax Co-authored-by: Andre Polykanine <ap@oire.me> * fix markdown syntax Co-authored-by: Andre Polykanine <ap@oire.me> * reword with better english Co-authored-by: Andre Polykanine <ap@oire.me> * reword with better english Co-authored-by: Andre Polykanine <ap@oire.me> Co-authored-by: Andre Polykanine <ap@oire.me>
* Update c.html.markdownLilian Besson2021-01-31-7/+12
| | | Following reviews from @menelion
* Update c.html.markdownLilian Besson2021-01-30-13/+22
| | | Just add a few explanations where I thought details were missing
* Requires -> RequireKoenigKrote2020-02-21-1/+1
|
* Rephrase variable declaration commentsKoenigKrote2020-02-21-4/+6
|
* [c/en] Fix link for Learn C the Hard Way bookHeitor Pascoal de Bittencourt2019-10-08-1/+2
|
* Make description of static keyword stronger, closes #2848Divay Prakash2018-10-09-0/+8
|
* Fix printf, closes #2730Divay Prakash2018-09-13-2/+2
|
* Add C99 comments, fix some typos and add clarifications in 'c.html.markdown'Dragos B. Chirila2018-09-04-6/+23
|
* Update c.html.markdownYoav2018-03-25-1/+1
|
* Update c.html.markdown0x6a6f73682018-01-04-3/+4
| | | How to get information on compiler flags.
* Update c.html.markdown0x6a6f73682018-01-04-1/+2
| | | Fixed and improved compiler flag default recommendations.
* [c/en] Correct off-by-one errorJakob Rieck2017-09-25-1/+1
|
* Update c.html.markdownAdam Bard2017-09-12-1/+1
| | | Fix presence of bool (Fixes #2854)
* Update c.html.markdownAdam Bard2017-09-12-2/+8
| | | Note on macro hygiene. Fixes #2853
* Update c.html.markdownAdam Bard2017-09-12-7/+25
| | | Fixes #2846, #2849, #2851, #2852 (Thanks to @noncombatant)
* Fix a bunch of typosHairyFotr2017-08-23-2/+2
|
* [c/en-en] Make reference link in footer/summary link to Stack Overflow ↵Aaroh Mankad2017-05-26-1/+1
| | | | | | | | article (#2739) * Make reference link in footer/summary link to Stack Overflow article * remove name from list of contributors
* Update c.html.markdown (#2734)Tyler Chong2017-05-23-1/+1
|
* fix further reading url (#2655)Louis-Philippe Asselin2017-02-12-1/+1
| | | Original link displays "This file has moved to process/coding-style.rst"
* C/en typo, formatting fixes (#2537)George Gognadze2016-10-31-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Space should be removed. Before: // Access struct members with . After: // Access struct members with. C should be capitalized. Before: // there is no Boolean type in c. We use ints instead. After: // there is no Boolean type in C. We use ints instead. Before: Header files are an important part of c as they allow for the connection of c After: Header files are an important part of C as they allow for the connection of C Before: Header files are syntactically similar to c source files but reside in ".h" After: Header files are syntactically similar to C source files but reside in ".h" Before: files. They can be included in your c source file by using the precompiler After: files. They can be included in your C source file by using the precompiler Before: as the c file. After: as the C file. Before: /* should instead be put in a c file. */ After: /* should instead be put in a C file. */ Before: /* Beyond the above elements, other definitions should be left to a c source */ After: /* Beyond the above elements, other definitions should be left to a C source */ Before: /* a header file but instead put into separate headers or a c file. */ After: /* a header file but instead put into separate headers or a C file. */
* Update c.html.markdown (#2385)Subhrajyoti Sen2016-09-27-0/+1
|
* c: init array with string literals not introduced. (#2369)Jakukyo Friel2016-09-13-4/+2
| | | | | | | | | | | | | | | | | | * c: fix using pointer before introduced. * c: init array with string literals not introduced. To avoid using the concept pointer before it has been introduced, previously it is changed to array. But as @geoffliu pointed out, array initialization using string literals is not introduced either. So this commit uses neither pointer nor array. Discussing `i++` and `++i` does not need to involve pointer or array. * c: use `var = value` instead of `->`. `->` is typically used for functions. Thanks, @vendethiel.
* Remove undefined behavior (#2332)Ryan2016-08-17-1/+2
|
* Fix c - the first character of ILoveC is I not i (#2253)Michal Jurosz2016-05-12-2/+2
|
* issue 2205: Change variable 'size' to 'array_size'Ryan Rauschenberg2016-03-22-3/+3
|
* fixedDivay Prakash2016-03-12-1/+0
|
* fixed whitespacesDivay Prakash2016-03-03-9/+3
| | | | removed whitespaces all over document
* [c/en] typosJacob Ward2016-02-18-3/+3
|
* typoGeorge Gognadze2015-12-24-4/+4
| | | | | | | | | | | some type mistakes. It is: syntaxtically It should be: syntactically It is: iLoveC Better: ILoveC It is: passed to ≈the function It should be: passed to the function It is: error It should be: Error
* Merge pull request #1872 from luehm/c_casesGeoff Liu2015-12-18-9/+15
|\ | | | | [C/en] Added tidbit about fall-though in switch statements.
| * [C/en] Added tidbit about fall-though in switch statements.Alex Luehm2015-10-28-9/+15
| | | | | | | | Another pitfall, as not all languages have fall-through in switches.
* | Edit variable-length array exampleJody Leonard2015-10-26-7/+2
|/ | | | | | | | | The current example seems to be trying to set a size for a char buffer, use fgets to populate that buffer, and then use strtoul to convert the char content to an unsigned integer. However, this doesn't work as intended (in fact, it results in printing "sizeof array = 0"), and so adapt to a simpler fscanf example. Also remove some ambiguous language in the example output.
* Added example of printIntArray in CBrendan Batliner2015-10-15-0/+6
|
* Update c.html.markdownBrendan Batliner2015-10-15-0/+28
| | | Added additional info on dynamically allocated arrays in C.
* Cleaned up c fileZachary Ferguson2015-10-15-4/+0
|
* Merge remote-tracking branch 'refs/remotes/adambard/master'Zachary Ferguson2015-10-15-3/+64
|\ | | | | | | | | Conflicts: c.html.markdown
| * Merge pull request #1512 from awalGarg/patch-2Levi Bostian2015-10-15-0/+3
| |\ | | | | | | [c/en] clarify common tripping point of newbies
| | * [c/en] clarify common tripping point of newbiesAwal Garg2015-10-14-0/+3
| | | | | | | | | | | | | | | | | | int foo () { printf("bar\n"); int x; // this is not valid in C89+ }
| * | Merge pull request #1511 from awalGarg/patch-1Levi Bostian2015-10-15-0/+2
| |\ \ | | | | | | | | [c/en] clarify that args' names are not required in proto
| | * | clarify that args' names are not required in protoAwal Garg2015-10-14-0/+2
| | |/ | | | | | | with obligatory conventional warning
| * | Merge pull request #1480 from eltonvs/masterven2015-10-15-1/+3
| |\ \ | | |/ | |/| Translation fixes and extra information
| | * Some extra informationElton Viana2015-10-14-1/+3
| | |
| * | Merge pull request #1399 from himanshu81494/masterLevi Bostian2015-10-12-2/+42
| |\ \ | | | | | | | | example function added for call by reference
| | * | Update c.html.markdownhimanshu814942015-10-09-8/+14
| | | |
| | * | Update c.html.markdownhimanshu814942015-10-08-1/+19
| | | |
| | * | Update c.html.markdownhimanshu814942015-10-08-0/+1
| | | |