c++ typeof variable code example Example 1: c++ how to check type of variable typeid(variable).name() Example 2: c++ typeof typeof (int *)