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

Data type should be either of float and double



Your comments will be displayed only after manual approval.