malloc() vs new

1.7

Following are the differences between malloc() and operator new.: Calling Constructors: new calls constructors, while malloc() does not. In fact primitive data types (char, int,… Read More »

G-Fact 10

Enumeration constants (enum values) are always of type int in C, whereas they are distinct types in C++ and may have size different from that… Read More »

G-Fact 9

The number of structurally different Binary Trees with n nodes is Catalan number Cn = (2n)!/(n+1)!*n! References: http://mathworld.wolfram.com/BinaryTree.html My Personal Notes arrow_drop_up Save