Commit Graph

214 Commits (4b4762716c54aa809a2e02cf0e98d902de5f1296)

Author SHA1 Message Date
kichukiran97 844554aab9 typo (#29647) 2019-01-15 14:42:22 -06:00
Taiyue Tan 5831dc657a fixed spelling errors, added more information (#28297)
- logic changes
- explanations on different statements
2019-01-15 14:34:17 -06:00
Meghan Westvig 74de20f3cf Fixing spelling errors (#27199) 2019-01-15 14:21:02 -06:00
Rajiv Ranjan Singh d0a534537c Update index.md (#34846) 2019-01-15 14:19:09 -06:00
MelodyMale 1add8e9067 Edit "sizeof()" into italic style in line 51 (#26870) 2019-01-10 21:16:36 -05:00
punit78 8f9d26c4ad Deleted " ++number statement from Floyd's Triangle " (#30858)
added "number++" within the printf()
2019-01-08 12:11:10 -07:00
Tanmoy Sarkar 863fd135ea Corrected Syntax index.md (#29260)
There was a syntax error - missing ';'
2019-01-08 10:53:27 -07:00
Ayush Shrivastav 4745843717 Update index.md (#28530)
Updated Loop Description
2019-01-08 10:52:26 -07:00
shahiarpit aff166ba45 Updated index.md (#28498)
Corrected few mistakes.
2019-01-08 10:09:21 -07:00
blankaex 7933d6fa3a Added a section on optimistic indentation (#24185) 2019-01-08 09:45:19 -07:00
Tammy Lee 18b053378d Added about statically vs dynamically allocated (#31555) 2019-01-05 10:16:47 -07:00
pcsingh cf06cd9ad9 Update index.md (#31403) 2019-01-05 10:15:47 -07:00
athreya2013 a8801255c0 Information regarding pointers in array (#30573)
* Information regarding pointers in array

Added more Information in 2D arrays that we can declare the array without no_of_rows and usage of pointers in array element accessing

* fix: formatting/spelling

* fix: formatting, matched variable name to other examples
2019-01-05 09:44:52 -07:00
Papun Charan d0879e5f59 Added a 'Note' and another section (#30547)
The note tells about what kind of datatype can be used in array, and in another section the difference between initialization of character array and string is discussed.
2019-01-05 09:30:51 -07:00
kichukiran97 d50c344772 Typo (#29638)
ints was there which will make confusion
2019-01-05 09:05:51 -07:00
YenruoY 527a1fd177 Added missing semicolon (#29437) 2019-01-05 08:59:54 -07:00
Tanmoy Sarkar e411dc3dc5 Simplified index.md (#29285)
Simplified the logic of nested loops of pattern printing.
2019-01-05 08:59:13 -07:00
samujjal1618 96c481057e Typo fixes and improving explanation (#25424)
*Spelling Hello, World! consistently everywhere. 
*Improved explanation and some typo fixes.
2019-01-03 19:11:02 -08:00
Candice Beaman 93c2b68026 Added Source Code, cleaned up... (#26314)
got rid of duplicate Linker def and put in ABC order
2019-01-03 09:36:22 -05:00
owlhoo 8a21fe58f1 Update index.md (#26416) 2019-01-02 11:14:33 -05:00
muskaangupta15 3cee0f4afb Update index.md (#27111) 2018-12-31 09:57:20 -07:00
owlhoo 07ae8e2985 Update index.md (#26435) 2018-12-31 09:54:49 -07:00
Ritaban Datta ff93803254 Updated review in index.md (#32503)
Added a point in Review
2018-12-26 11:35:45 -07:00
Anutosh1 56199a5511 arrays and strings (#32030)
* arrays and strings

* fix: spelling and removed unnecessary fragment
2018-12-26 11:31:05 -07:00
Tzupy f809383489 Added an initialization example with empty curly braces (#30973) 2018-12-26 11:09:36 -07:00
Xiaojie(Aaron) Li 65fc276113 fixed grammar mistakes (#30510) 2018-12-26 11:02:39 -07:00
nightsurfer7 3e99f0cf25 Removed an unnecessary comma. (#29473) 2018-12-26 11:01:06 -07:00
philippG777 514409badf Rework the arrays and strings guide for C (#29444)
* Use code blocks instead of plain text

* Fix manual implementation of strlen

* Fix array-declaration in code snippets
2018-12-26 11:00:19 -07:00
Briana Cowles 5400a1da8c added documentation for strncpy (#27565)
* added documentation for strncpy

* fix: formatting
2018-12-26 10:12:22 -07:00
ishan-sriv 6656ac26ba Add line 159 (regarding stricmp) to the article (#27032) 2018-12-26 09:34:52 -07:00
blank10032 946f53b8a0 Added another example using nested if statements (#24197) 2018-12-23 15:35:11 -07:00
Daniel 050b30dfed Corrected minimum value of a long long in C Guide (#25576)
Under the "Even longer integers: 'long long'" section of the "Data Types in C" article of the C Guide, the minimum value stored was listed as -9,223,372,036,854,775,807.  This was corrected to -9,223,372,036,854,775,808.
2018-12-21 22:05:19 -05:00
Arunangshu Biswas f00c2e6730 Added two more additional learning resources (#25538)
I've added two more useful and informative websites as additional learning resources.
2018-12-20 20:00:12 -05:00
yoadwo 5606023aae Update Index.md (#24095)
added clarification: strlen() does not include the null-termination character
2018-12-19 04:12:59 -05:00
hariom Choudhary 3920b20718 Example to explain working (#25137) 2018-12-19 03:15:29 -05:00
Connor 2c1c11c34a Added resource link to Beej's Networking Guide (#25241)
Added a link to https://beej.us/guide/bgnet/, which is an excellent resource for learning network programming in C
2018-12-18 23:41:36 -05:00
Christopher McCormack d27ed9ce78 refactor: fixed formatting/spelling/grammar, added table of contents (#34704) 2018-12-18 17:27:26 -08:00
Robby Renz 785f22e985 Add way to compile and run C programs via Cygwin (#34038)
* Change the level of the bullet points

Changed the level of the bullet points in "A review" section to make it more organized.

* Fix typo of 'Gnu' to 'GNU'

* Add a way to compile and run C programs via Cygwin

I added a section explaining a way to use Cygwin to compile and run C programs.
2018-12-18 16:29:43 -07:00
shadmantaqi a9dfb97bbd Change The printf function of the Hello World code (#30996)
Just changing the printf string of the Hello World code to match the code used later in the article
2018-12-18 15:59:16 -07:00
Tristan Sweet 945b89d569 Update index.md (#30620) 2018-12-18 15:24:13 -07:00
kichukiran97 d1c26fd230 Grammar mistake and typo (#29665) 2018-12-18 15:12:53 -07:00
Juan D Frias 924c95518a Fixed minor formatting issues, expanded content (#29265) 2018-12-18 12:48:30 -07:00
matthewoelke 2037263dba Update index.md (#27467)
Added note that main function is only called once.
2018-12-18 11:03:49 -07:00
Sunny d7685dd30b Added wikipedia page link for more description about Dennis Ritchie. (#27016) 2018-12-18 10:58:53 -07:00
DEBSUBHRA ROY df2d3de61e Correcting format (#26885) 2018-12-18 10:38:44 -07:00
Meghan Westvig be9a3ac76c Fixing spelling errors (#27200) 2018-12-17 14:56:19 -08:00
Ankit Mathur 52e288423f Correcting grammatical errors. (#33528)
* Correcting grammatical errors in syntax section.
2018-12-17 12:39:20 -07:00
Parul-Seth b1f8474ed1 add text (#31948)
nested for loop
2018-12-17 11:52:45 -07:00
richard937 406e5f8220 I have added a 'Note' part (#31868)
The note part explains where we can use 'for' loop without using curly braces.
2018-12-17 11:08:27 -07:00
eliberator dcceee67fc typo guide c more-math rightshift (#31663)
* add output missing line; 'for' C guide in Spanish

* typo - update the right-shift variable from c to b

* typo - ES change var of right-shift from c to b

* typo - AR change the right-shift oper from c to b

* typo - CN update var of rightshift from 'c' to 'b'

* typo - PT update var of right-shift 'c' -> 'b'

* typo - RU update var of right-shift from 'c' to 'b'
2018-12-17 10:48:36 -07:00
shadmantaqi 6750091708 add return 0; in example (#31008) 2018-12-17 10:33:30 -07:00
AKASH JAIN 4fc41ac133 Leaving Parts Blank in a for loop. (#30479) 2018-12-17 10:06:38 -07:00
Juan D Frias 6d97b7e795 Fixed formatting, expanded text and corrected code output (#30111) 2018-12-17 09:51:53 -07:00
Máté Szőnyi 0e92f98997 Added a note for the example (#29878)
When I started learning programming for a good amount of time I couldn't understand why did we start the loop from 0 to print out values of an array, because I didn't know the "arrays are indexed from 0" rule back then. I thought this could be helpful
2018-12-17 09:34:47 -07:00
Aathil Ahamed 4c69838a20 Added introduction to index.md (#28478)
I've add more and brief information about for loop and I briefly explained the function.
2018-12-17 09:21:24 -07:00
ishan-sriv d03e742a85 Add lines 45-57 (infinite loop) to the article (#27051) 2018-12-17 09:04:37 -07:00
kavyasreek9 19ef5250e6 Updated index.md (#26819)
* Updated index.md

Included description and examples of break and continue statements using for loop.

* fix: formatting
2018-12-17 08:45:37 -07:00
hariom Choudhary b9362d8674 Null Pointer explained (#25098)
* Null Pointer explained

* Grammar and formatting fixes
2018-12-15 21:56:35 -05:00
apurv22 1a3ae2106c Updated a sentence to be more meaningful. (#25036) 2018-12-15 01:51:03 -05:00
JOS PAUL SHAJAN b6ac02fdc6 Updated index.md (#24997)
* Updated index.md

Added base type and fixed minor errors.

* Grammar fixes
2018-12-15 01:41:21 -05:00
apurv22 738fa3553d Updated a sentence to be more meaningful. (#25033) 2018-12-15 01:22:52 -05:00
aniltirli be63fb4c3c line 277, 278, 282 comments enhanced (#24776) 2018-12-13 22:40:48 -05:00
Dikshant Bali 32a5816b61 Update index.md (#24544) 2018-12-11 19:17:39 -05:00
Dauli Pamale Alexis Ange 24d1276f9c Adding details to strcmp (#24491)
* Adding details to strcmp

* Reworded statement
2018-12-11 05:55:30 -05:00
Daniel ba11ff267a Corrected minimum int value in intro of "Data Types in C" in the C Guide (#24692)
* Corrected minimum int value in intro

As described in the "Standard Integers" section, at minimum and int can store values -32,768 to 32,767.  The negative value was incorrectly listed as -32,767 in the "Data Types in C" section.

* fix: typo
2018-12-11 13:53:35 +05:30
Anwesh Panda 58e61b2df6 Change that to than in Line 7 and add the ranges of int, long int and long long int. (#24366)
The ranges of int, long int and long long int are in line 23,31,43 respectively
2018-12-11 13:42:34 +05:30
apurv22 917f09aef2 Corrected grammar; changed 'are' to 'is' (#25030) 2018-12-11 13:32:23 +05:30
Petar Petkovic 1846972256 Loop through an array (#24420)
* Loop through an array

* Update index.md

* Removed extra spaces
2018-12-10 18:34:14 -05:00
blank10032 f760e90fc3 Added a section on why you would use macros (#24214) 2018-12-08 21:24:46 -05:00
kushan2018 4618195026 Update index.md , adding for loop examples (#24388)
* Update index.md

* Added code formatting to changes
2018-12-07 22:35:29 -05:00
ayush163 092a5a4ca8 Add the topic "Address Calculation" to the article (#24317) 2018-12-07 04:47:27 -05:00
kenbhatt bc65ccf919 My change is in line 18. (#23604)
Initialize----->start value
Condition---->stop value
Termination----->step value
2018-12-07 04:09:16 -05:00
LT 05eb597ca0 Fixed a simple typo. (#24169) 2018-12-07 03:59:12 -05:00
Rajesh Chittampally 14ea59d86d Added information about if statements, OR operator (#24356)
Added information about if statements, OR operator and fixed small typo issues.
2018-12-06 12:31:57 +05:30
wolfwhocodes 7d749d1117 Added a new string function called strncat (#23319)
Brief description and example of the strncat function was given.
2018-12-03 11:08:26 -07:00
kzellers 97f80c715c added example for incrementation (#23908) 2018-12-01 22:02:30 -05:00
wolfwhocodes 8848487622 Infinite for loop (#23252)
* Infinite for loop

A brief description of the infinite for loop was given along with an example.

* Added syntax highlighting
2018-12-01 21:52:31 -05:00
Emir 63144ea2ac Small contribution to switch statement (#23150) 2018-12-01 14:44:45 -07:00
msabitabrata 597ba0b9be Switch case with same code for multiple values (#23073)
* Switch case with same code for multiple values

Handle switch case when single piece of code runs for multiple values.

* removed invalid example numbering introduced in merge conflict resolution
2018-11-30 12:53:17 -07:00
Farai Mugaviri 15f51af38b Format and C syntax highlighting on code snippets (#25114) 2018-11-29 18:05:06 +05:30
Akash Kumar ab50b03c38 Add explanation about comments (#22944)
Add the text "Two backslash characters (//) are used to _comment_ the code, for better understandability. Anything after // on a line is ignored while compiling the program" to help new users understand commenting.
2018-11-28 19:34:05 -07:00
Anwesh Panda 1391626232 Add my changes to recursion . (#25155)
It describes the usage and importance of a base condition.
2018-11-28 18:24:28 +05:30
Krinjih daa880d822 Changed some examples (#22167)
Changed the layout of some examples, so they are recognized as C-Code
2018-11-26 04:54:57 -05:00
doug b bb34761dfd Fix guide -c -operators. Fixed formatting, added examples (#22717)
* working on fixing sizeof() operator

* working on fixing sizeof() operator

* Update index.md

* Update index.md
2018-11-25 11:42:43 -07:00
jagmeethanspal 9cea2d56a5 Added Special Operators in Macros (#22514)
One small fix and the explanation of Stringizing and Token Pasting Operators that can be used effectively in C macros.
2018-11-24 16:33:39 -08:00
Kirsten 60e2b8aa18 Update index.md (#26282)
Keep capitalization consistent in the article's title

Replaced "be able to know" with "become comfortable" to tighten up wording

Replaced "However, they" with "Furthermore, these guides"

Replaced "it" with "the C language"

Replaced "Mac" with "MacOS"
2018-11-23 22:09:17 +05:30
wolfwhocodes 1672a60482 Update on Names for variables (#23286)
Updated the rules for the first character of the variable name
2018-11-23 05:25:36 -05:00
Sudhakar Kumar 15be30e829 Fix spelling (#34383) 2018-11-22 16:17:54 -05:00
wolfwhocodes 281a6f4fb8 Associativity of operators (#23217)
When two or more operators of the same precedence occur in an expression, associativity determines the order in which they must be evaluated.
2018-11-22 04:10:27 -05:00
KevinMDuarte 5cd69f01c5 Added ternary operator (#22427)
Added ternary operator with some explanation and an example
2018-11-21 07:18:14 -08:00
Bearz314 97679fd4c2 Minor formatting change and added a note on == (#22378)
* Minor formatting change and added a note on ==

* Code blocks are now styled as C-language syntax.
* Added a note about the difference of `==` and `=` in the context of condition statements.

* change the second #6 to 7
2018-11-21 09:15:21 -06:00
rdfriesen 610c4303c1 typo fix (#21195) 2018-11-21 08:12:00 -05:00
Miftah Mizwar e9004f3e21 Update block of code to be highlighted as C (#22588) 2018-11-20 18:31:50 -05:00
Muralidharan Sekar 77246a193d Add the title "More information " to the article (#22288) 2018-11-20 07:40:29 -06:00
Krinjih c9a315f58a Added b to open modes (#22196)
* Added b to open modes

Added the binary mode to the different modes of opening a file

* Fixed formatting
2018-11-19 16:34:36 -05:00
Ilkay Tevfik Devran 251092a359 Example to Basic Socket Programming (#22179)
A link has been added for example to socket programming.
2018-11-19 16:32:41 -05:00
Krinjih 68e7028aab Added examples for logic operators (#22259)
* Added examples for logic operators

Added tables for examples for "and", "or" and "xor"

* fixed table formatting
2018-11-18 19:51:17 -07:00
Farai Mugaviri e73ffaf2fe Add void pointer to index.md (#22248)
* Update index.md

I added void pointers, which can be very useful in C programming, especially when dealing with unknown data types but had not been included.

* fixed formatting issues, removed attributions, moved placement to more appropriate location

* adjusted section header size
2018-11-18 19:23:19 -07:00
Muralidharan Sekar 7ad3dd4bd9 Add the text "Conditional operators" to the article (#22235)
* Add the text "Conditional operators" to the article

* fixed numbered list formatting
2018-11-18 19:19:25 -07:00
Krinjih e5a531682f Added a warning to the article (#22219)
* Added a warning to the article

Added a warning with an example, which can occur on older compilers.

* fix(guide): c for loop iterator misnomer

declaration not initialisation
2018-11-18 18:56:43 -07:00