C cheatsheet: Added pointers to c cheatsheet (#4099)

* Added pointers to c cheatsheet

* Removed the hard-tabs
master
preemeijer 2017-08-17 21:34:36 +02:00 committed by Rob Emery
parent ae7265575b
commit aff77f1509
1 changed files with 21 additions and 2 deletions

View File

@ -19,7 +19,8 @@
"Other Operators",
"Conversion Characters",
"Escape Sequences",
"Order of Precedence"
"Order of Precedence",
"Pointers"
],
"sections": {
"Arithmetic Operators": [
@ -281,6 +282,24 @@
"val": "Comma - associativity goes from left to right",
"key": "[ , ]"
}
],
"Pointers": [
{
"val": "The memory address of the variable",
"key": "&"
},
{
"val": "The memory address of the element inside an array",
"key": "&a[i]"
},
{
"val": "Declaring a pointer to a variable",
"key": "*"
},
{
"val": "Declaring a void pointer",
"key": "void *"
}
]
}
}
}