Open main menu

CDOT Wiki β

Changes

BTP300

286 bytes added, 21:23, 20 September 2013
Learning C++/C Programming
* Is sizeof in C++ evaluated at compilation time or run time? [http://stackoverflow.com/questions/2615203/is-sizeof-in-c-evaluated-at-compilation-time-or-run-time]
 
* ptrdiff_t is supposed to be used when doing '''pointer subtraction'''. But in this example,(class demo program "pointerSubtraction.cpp" on matrix.senecac.on.ca) an int will work just fine storing the subtraction result. Reason:[http://www.cplusplus.com/reference/cstddef/ptrdiff_t/]
== Workshops Q & A ==
1
edit