While swapping 2 numbers what precautions to be taken care?
b = (b / a);
a = a * b;
b = a / b;
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: Option B
Related Questions on C Fundamentals
What is the primary purpose of a function prototype in C?
A. Declare a variable
B. Declare a function
C. Define a function
D. Assign a value
What is the correct syntax for declaring a variable in C?
A. int variable_name;
B. variable_name = 5;
C. variable_name int;
D. int = variable_name;

Join The Discussion