C++ uses type-safe I/O. Each I/O operation is executed in a manner sensitive to the data type. If an I/O member function has been defined to handle a particular data type, then that member function is called to handle that data type. If there is no match between the type of the actual data and a function for handling that data type, the compiler generates an error.
i. Can u give code snippet where C++ compiler gives error when there is data mistmatch between function call and actual input data passed?
ii. Also give examples of C which shows C is type unsafe?