Commit Graph

214 Commits (4b4762716c54aa809a2e02cf0e98d902de5f1296)

Author SHA1 Message Date
Ritaban Datta 272499aa63 Updated recursion (#32505)
Deleted an extra white space
2019-05-11 21:57:53 +05:30
Daniel 44661a3e06 Fixed block code and syntax highlighting (#29977)
This commit fixes the example code to demonstrate the working of arithmetic operators so that the entire code, from initial comment to ending curly brace for main(), is in a Markdown code block and is syntax highlighted.  Spacing around the include and int initialization was improved as well.
2019-05-01 08:06:29 -07:00
Papun Charan ddc5f2457a Added a tip and a statement (#30277)
* Added a tip and a statement

The statement says that using only 'if' is ok but 'else' and 'else if' can't be used without 'if'.
And the tip column is for optimization, it is clearly explained with two examples.

* Formatting
2019-04-17 17:36:58 +05:30
Nisu08 dd55825a4e In Line 5 (#30435) 2019-04-15 15:56:29 +05:30
bpese 038e096e59 Fixed a few typos. (#31577) 2019-04-14 10:25:45 +05:30
Hari Krishna 069f94e699 Minor typos (#29623)
* Minor typos

* fix: reverted unnecessary change
2019-04-09 20:14:20 -07:00
Mahesh Jaganiya 97284992ec Added malloc() review (#33307) 2019-04-08 07:54:04 -07:00
richa7327 e6a6bb0c82 add example of malloc (#32665) 2019-04-06 12:31:01 -07:00
JM0S3R 9289b038b5 Changed some grammar issues for better readability (#27480) 2019-04-06 19:26:51 +05:30
ishan-sriv e72caaa534 Add lines 169-171 (short circuit in logical operators) (#27061) 2019-04-06 17:22:54 +05:30
Jonathan Villegas cce94b12e0 Added reminder to include libraries in files. (#28218) 2019-04-05 11:39:56 -07:00
nlather 499cce2e1a added reference links (#27387)
* added reference links

* Update index.md
2019-04-03 14:10:12 +05:30
Jacob Kim 7a644820d0 Added declaration of malloc (#31439)
* Added declaration of malloc

* Updated synopsis of malloc function
2019-04-01 16:19:55 -07:00
Jay Patel 46ae11f958 mallo() vs calloc() (#30669) 2019-04-01 11:30:39 -07:00
Oliver Eyton-Williams 73277d8ba8 fix: Restore missing emojis and fix broken links (#35703)
* fix: Restore missing emojis and fix broken links

* fix: Remove emojis to conform with style guide

* fix: Remove the last emoticons
2019-03-29 12:52:56 -07:00
cindydhy aa302cd5e5 Fixed formatting issues. (#35137) 2019-03-26 19:56:50 +05:30
aniltirli a70b243ea2 Comment addition for "break" (#33714) 2019-03-26 19:55:39 +05:30
Morgan McLain-Smith c05b6f78ae Proofreading on C file-handling (#33065) 2019-03-23 16:29:22 -07:00
Christian Coffey b13c10c6d0 Refined the explanation of pointers & their syntax (#30606)
Made some changes to make the declaration of pointers and how they are used more easily understood. Additionally modified the explanation regarding the '&' dereferencing operator.
2019-03-20 12:32:19 -04:00
Papun Charan 88f0996a4f Added 'Pointer to pointer' section (#32819)
* Added 'Pointer to pointer' section

The 'Pointer to pointer' section describe what is pointer to pointer with an example.

* Update index.md

Changed Output header to ####
2019-03-20 12:25:09 -04:00
Parul-Seth 4231d9e112 update text (#31958)
nested IF syntax and example
2019-03-12 12:40:32 -07:00
cindydhy 708f951f8e Reformatted some example programs for consistency (#35139) 2019-03-11 08:56:22 -07:00
Meghan Westvig 1ef8270608 Fixing spelling errors (#27194) 2019-02-23 21:35:00 -08:00
Javed Mohamed 01b8030bbe Improve C dynamic memory guide (#23849)
- Fix many errors and facts to be more accurate.
- Add more examples and cover all four commonly used functions.
- Rewrite parts to be more clear.
- Add some useful notes and warnings ... memory allocation is error prone!
2019-02-23 21:18:22 -08:00
Papun Charan 853311c57a Added 'difference between macros and functions'part (#32372)
I have explained the basic differences between macros and functions.
2019-02-20 01:05:00 -05:00
Juan D Frias f2b3e2091a Minor code corrections and text clarification (#30123) 2019-02-20 00:11:11 -05:00
Connor 2424f7892b Small edits (#29888) 2019-02-19 23:24:41 -05:00
N-Gohel f70bf00b7e added two helpful tips (#26949)
* added two helpful tips

* Grammar cleanup and formatting changes
2019-02-14 23:55:37 -05:00
Shubhamjainagrawal 0be5360a93 described return 0. (#32117)
described use of return 0 in function.
2019-02-13 20:46:36 -06:00
Shubhamjainagrawal 58e10048a6 Explained int main() (#32051)
Return value of main function explained
2019-02-13 20:26:42 -06:00
AKASH JAIN ed816b8266 Extra information (#31621) 2019-02-13 20:02:05 -06:00
Juan D Frias 7d30fdbe3a Formating changes and clarified text. (#30093) 2019-02-13 17:15:01 -06:00
Papun Charan fc8261d625 Corrected a misspelled a word and added the return (#30091)
The "printf()" was misspelled as "print()", so i corrected that and also added the part which describes what does printf() return,, and also added a sample code to clear the concept.
2019-02-13 09:37:16 -06:00
Dylan Rainwater 13115bfb4e Add block comment example and remove whitespace (#28816)
* Add block comment example and remove whitespace

* fix: capitalized string to match output

* fix: removed >
2019-02-11 21:48:16 +05:30
Briana Cowles 510654c040 Created documentation of calloc (#27558)
* Created documentation of calloc

this file used influence from other files in the c docs for consistency

* Rename calloc to calloc.md

* Rename guide/english/c/calloc.md to guide/english/c/calloc/index.md
2019-02-10 17:22:55 -08:00
Koustav Chowdhury d48da61e24 Add an interesting application of passing pointers to functions (#23831)
* Update index.md

* fix: added line break
2019-02-10 10:30:03 -08:00
Amulya Gaur 2f57c6131c added types of sockets and their comparison (#30893)
Added information about TCP and UDP protocols and their corresponding sockets ie. stream and datagram sockets.
Comparison is also added.
2019-01-30 14:22:50 -08:00
Briana Cowles c6d4a54a7d small grammar changes (#27575) 2019-01-30 14:05:31 -08:00
squidnerd 3ff24a2a84 Corrected typos, grammar (#27201)
Fixed some spelling, capitalization, and punctuation errors and did minor edits for clarity
2019-01-30 13:54:35 -08:00
P Karthik Chowdary 3b5b0e22a7 Added a conditional note on application of break and continue (#33298) 2019-01-29 12:14:56 -07:00
Kaustubh J c731321661 Update index.md (#32520)
Added few more points for Switch vs If-else
2019-01-29 11:19:49 -07:00
Rohan Jha 1edffae901 Grammatical Correction (#32446)
Made a small grammatical correction in line 64
2019-01-29 10:16:21 -07:00
athreya2013 aec38c04d7 Made the comment more clear (#30524)
Added clarity to the given comment
2019-01-29 09:10:58 -07:00
Nikhat Zaidi 48313a48a6 Case can only be constant (#30360)
case can be defined by a constant not by variable
2019-01-29 09:10:02 -07:00
Kirk Manegold 4e2ff2b0bd Updated switch-case fall through (#29744)
Added an example
2019-01-29 09:07:56 -07:00
Morgan McLain-Smith c036904e86 simplified ternary operator article (#33077) 2019-01-15 15:43:30 -06:00
Daniel f31d345e20 Fixed misspelling and capitalization in C Guide (#29966)
This commit fixes a misspelling in the reference to 'Some shiny things' and capitalizes the 'W in 'We can also write the program in the manner below:'
2019-01-15 15:16:52 -06:00
Briana Cowles 316733ce2a small grammar changes (#27561)
for clarification
2019-01-15 15:08:04 -06:00
Ajith Menon b8880d685c corrected spelling (#30261) 2019-01-15 15:05:26 -06:00
Tzupy db82a53408 Fixed a compilation error and some spelling mistakes (#30984) 2019-01-15 15:03:52 -06:00