Commit Graph

230 Commits

Author SHA1 Message Date
tjowers95
e933bba8a3 Really elaborating on the network topic to be nearly all inclusive (#36140)
This might be better put in a topic separate from C, its own topic, since the network socket interface is accessible in Java, C#, Python, PHP, NodeJS, etc. . Since the socket api is written in C itself, the system calls, and most languages will use these same C system calls, I think it still works to offer the main explanation in C, then either have an example server and client in every language PHP, Ruby, Java, C#, Obj-C, etc
2019-07-19 16:15:00 -05:00
Papun Charan
c124f3ce3d Added some more format specifiers (#30135)
I have added format specifiers of long long int, long int, long long int(unsigned), long int(unsigned),and of double.
2019-06-27 22:32:59 -07:00
Connor
0c4dce8984 Added topic about Valgrind (#29902)
* Added topic about Valgrind

Valgrind description added, which I wish I knew about when I was learning C.

* fix: changed header title
2019-06-27 16:35:06 -07:00
dipashreepatil
b91fd01f36 Update index.md (#28705) 2019-06-27 16:17:55 -07:00
Suvarna Sivadas
18908b40c4 added range of values (#33656)
* added range of values

* fix: formatted table with markdown
2019-06-27 15:46:11 -07:00
dipashreepatil
6822234614 Update index.md (#32441) 2019-06-27 15:37:46 -07:00
Papun Charan
b07fac01b2 Added a 'Note' part. (#32776)
The 'Note' part describes how we can check for odd even with the help of & operator.
2019-06-25 11:04:53 -07:00
Randell Dawson
b7e98240c8 fix replace #include with c for language postfix 2019-06-25 16:57:43 +08:00
Randell Dawson
4a2b88b16e fix replace output with shell for language postfix 2019-06-25 16:57:43 +08:00
Randell Dawson
1932a08858 fix replace sh with shell for language postfix 2019-06-25 16:57:43 +08:00
Papun Charan
b660edb52d Added the limitations of return type function (#32376)
Explained that in a function what kind of values can be returned.
2019-06-11 17:55:25 -07:00
stavkl
5fb6d5fd6b elaborated on ptr to structs and typedef usage (#30511) 2019-06-08 20:15:13 -05:00
dipashreepatil
6eb1e6e2f2 Update index.md (#28724) 2019-06-01 09:26:56 -07:00
muskaangupta15
4c4f3c7f87 Update index.md (#27085) 2019-05-31 14:37:35 -07:00
Shubhamjainagrawal
b55c50c6cf described assignment operator (#32080)
described use of asssignment operator in c program.
2019-05-20 08:05:18 -07:00
Randell Dawson
0a1eeea424 fix(guide) Replace invalid prism code block names (#35961)
* fix: replace sh with shell

fix replace terminal with shell

fix replace node with js

fix replace output with shell

fix replace cs with csharp

fix replace c++ with cpp

fix replace c# with csharp

fix replace javasctipt with js

fix replace syntax  with js

fix replace unix with shell

fix replace linux with shell

fix replace java 8 with java

fix replace swift4 with swift

fix replace react.js with jsx

fix replace javascriot with js

fix replace javacsript with js

fix replace c++ -  with cpp

fix: corrected various typos

fix: replace Algorithm with nothing

fix: replace xaml with xml

fix: replace solidity with nothing

fix: replace c++ with cpp

fix: replace txt with shell

fix: replace code with json and css

fix: replace console with shell
2019-05-15 19:08:19 +02:00
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