C Program To Implement Type Checking Function