January 2014
Intermediate to advanced
352 pages
8h 21m
English
There are many programming situations where same set of operations is applied on different data types. For example, the following function exchanges the contents of two variables of type int.

Now, consider a situation where we also need to exchange the contents of variable of type: float and char. Accordingly, we will have to define the following two functions:
Function for float type variables:

Function for char type variables:
It may be noted that 99% of the code in the ...
Read now
Unlock full access