Consider a large project, where many types are typedef
\'d, e.g.
typedef int age;
typedef int height;
and some functions gettin
No, there cannot be. A compiler will warn you if you're doing (or about to do) something illegal. It is not supposed to know (or determine the correctness of) the values which you will be passing as function parameter. As long as the types are same, it does not have any reason to complain.
However, in case of type mismatch, it will alert you.