Hidden features of C
Function pointers. You can use a table of function pointers to implement, e.g., fast indirect-threaded code interpreters (FORTH) or byte-code dispatchers, or to simulate OO-like virtual methods.
Then there are hidden gems in the standard library, such as qsort(),bsearch(), strpbrk(), strcspn() [the latter two being useful for implementing a strtok() replacement].
A misfeature of C is that signed arithmetic overflow is undefined behavior (UB). So whenever you see an expression such as x+y, both being signed ints, it might potentially overflow and cause UB.
Hidden features of C
Function pointers. You can use a table of function pointers to implement, e.g., fast indirect-threaded code interpreters (FORTH) or byte-code dispatchers, or to simulate OO-like virtual methods.
Then there are hidden gems in the standard library, such as qsort(),bsearch(), strpbrk(), strcspn() [the latter two being useful for implementing a strtok() replacement].
A misfeature of C is that signed arithmetic overflow is undefined behavior (UB). So whenever you see an expression such as x+y, both being signed ints, it might potentially overflow and cause UB.
Related Topics
Setup Opencv-2.3 For Visual Studio 2010
Why Isn't It Legal to Convert "Pointer to Pointer to Non-Const" to a "Pointer to Pointer to Const"
Adding External Library into Qt Creator Project
Determine Size of Array If Passed to Function
Why Is It Wrong to Use Std::Auto_Ptr≪≫ With Standard Containers
C++ Deprecated Conversion from String Constant to 'Char*'
Why Use Iterators Instead of Array Indices
How to Set a Breakpoint on 'Memory Access' in Gdb
C and C++: Partial Initialization of Automatic Structure
Recommended Way to Initialize Srand
Rvalue Reference Is Treated as an Lvalue
Embedding Resources in Executable Using Gcc
Difference Between Static_Cast≪≫ and C Style Casting
Reading and Writing Binary File
What Happens to Global and Static Variables in a Shared Library When It Is Dynamically Linked
What's the Difference Between Assignment Operator and Copy Constructor