Some useful resources

Algorithms

Bit manipulation

Unix Threading tutorial

https://programming4interviews.wordpress.com/category/mathematics/

Pointer cause decay, references do not.

Decay means loss of type information. In C and C++, an array name ‘decays’ to pointer to the first element. The information lost is basically the number of elements in the array. This difference should be manifested by sizeof() operator in function f() and g(). References keep that information with them. such as ‘constness’ of int. Function names are also said to ‘decay’ into pointer to the function if only function name is used. [Read More]

References and Constants

What is a reference? A reference is nothing more than an alias. Anything you do with a reference you are actually doing to the object you are referencing. float x=3.14; float& intref=x; // intref is a reference to x float* ptr=&intref; // ptr holds the address of x float y=2.58; intref=y; // x is now equal to 2.58 Another simple example: void func(float& fr) { fr=99.99; } int main() { [Read More]