In C without type casting things will work with warning, but in C++ it wont because it is strong type check language..