Vidyalelo
C Programming · Q239

C Fundamentals

Programming · C Programming · question 239

Q239

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
Answer
C.
All data types are accepted except for (char *)
D.
This code doesn't swap 2 numbers

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board