If type of the value cannot be analyzed by looking into the bits, how does the machine know how the value should be manipulated?
c, c++
Solution
C and C++ are statically typed, meaning that types are a compile-time concept. The compiler generates code to manipulate the bits in a manner appropriate to the type; the machine executes that code, and doesn't need to know anything about the type.
Problem
If type of the value cannot be analyzed or found out by looking into the bits(As written in books I have referred), how does the machine know how the value should be manipulated?