-
While swapping 2 numbers what precautions to be taken care?
q = (q / p);
p = p * q;
q = p / q;
-
- This code doesn’t swap 2 numbers
- All data types are accepted except for (char *)
- Data type should be either of short, int and long
- Data type should be either of float and double
- None of these
Correct Option: D
Data type should be either of float and double