summaryrefslogtreecommitdiffhomepage
path: root/c.html.markdown
Commit message (Collapse)AuthorAgeLines
* 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
| | | |
| | * | Update c.html.markdownhimanshu814942015-10-08-1/+16
| | |/
| * / [C/en] Accessing command line arguments in mainAndy B2015-10-09-0/+10
| |/
* | Removed separate code sectionZachary Ferguson2015-10-14-4/+2
| | | | | | | | Removed the separate code section for header files
* | Added Header titleZachary Ferguson2015-10-13-1/+3
| | | | | | | | | | + Added a header file title * Changed ```c to ```h
* | [c/en] Added a section for header files.Zachary Ferguson2015-10-09-1/+49
| | | | | | | | | | | | Added a section for header files. Included a discussion of what belongs in a header file and what does not.
* | Revert "[c/en] Added a section for header files."Zachary Ferguson2015-10-07-49/+1
| | | | | | | | This reverts commit e1ac6209a8d3f43e7a018d79454fb1095b3314c0.
* | [c/en] Added a section for header files.Zachary Ferguson2015-10-07-1/+49
|/ | | | | | Added a section for header files. Included a discussion of what belongs in a header file and what does not.
* replaced scanf with fscanf.Pushkar Sharma2015-10-05-1/+1
|
* Variable size array, user size input added. #1170Pushkar Sharma2015-10-04-1/+3
| | | | Fixed Issue #1170 Variable size array, user size input added.
* revert additional resource suggestion in c.html.markdownJoe Savage2015-08-30-1/+1
|
* main() -> main(void) & fix spacing in c.html.markdownJoe Savage2015-08-29-12/+12
|
* fix resource capitalisation and add resource to c.html.markdownJoe Savage2015-08-29-1/+1
|
* add missing semicolons in c.html.markdownJoe Savage2015-08-29-2/+2
|
* c.html: fix #1021 (bitwise negation and shifting into the sign bit)Max Filippov2015-03-30-2/+2
| | | | | 0x0f is of type int, for 32-bit int the result is 0xfffffff0. 31'st bit is the sign bit of a 32-bit wide int.
* Change explanation of unsigned typesDevin McGinty2015-01-30-1/+1
|
* Fixed one line being cut off and a comment about the export attributemordner2015-01-08-2/+3
| | | | was referring to the wrong function and variable.
* Update c.html.markdownRuben2014-12-08-4/+5
|
* fix #873Martin Thoresen2014-11-24-1/+1
|
* [c/en] Typo: integral -> integerWes Turner2014-11-02-1/+1
|
* Add fixes from @marcom's PR ↵Levi Bostian2014-10-17-2/+7
| | | | https://github.com/adambard/learnxinyminutes-docs/pull/765
* Correction to use the intended variables.adventuretc2014-09-27-1/+1
|
* Couple changes to C to close ↵Levi Bostian2014-09-05-3/+9
| | | | https://github.com/adambard/learnxinyminutes-docs/pull/594
* Clarified C Octal CharacterBen Eysenbach2014-09-03-1/+1
| | | This fixes issue #658