Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

While swapping 2 numbers what precautions to be taken care?
b = (b / a);
a = a * b;
b = a / b;

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

Answer: b

Join The Discussion