A personal repository of random information in compensation for a fatigued biological computer
Breaded Electronics / Embedded » CCS C
http://www.cplusplus.com/doc/tutorial/arrays/
Fuses:
PIC16F876 |
#include <16F876.h> |
||
Wow:
http://mdubuc.freeshell.org/Robotics/Tips.html
http://frontrangerobotics.org/PIDbackEMF/DavesBEMFmotorArticle.htm
http://www.gooligum.com.au/
The syntax of the conditional operator is
e1 ? e2 : e3
and what happens is that e1 is evaluated, and if it's true then e2 is evaluated and becomes the result of the expression, otherwise e3 is evaluated and becomes the result of the expression. In other words, the conditional expression is sort of an if/else statement buried inside of an expression.
..
The conditional operator evaluates an expression returning a value if that expression is true and a different one if the expression is evaluated as false. Its format is:
condition ? result1 : result2
Notice the difference between the reference and dereference operators:
Thus, they have complementary (or opposite) meanings. A variable referenced with & can be dereferenced with *.