Q. While swapping 2 no’ what at precautions to be taken care? b = (b / a); a = a * b; b = a / b; (Solved)
1. Data type should be either of short, int and long
2. Data type should be either of float and double
3. All data types are accepted except for (char *)
4. This code doesn’t swap 2 numbers
- b. Data type should be either of float and double