C Programming MCQ

1:

 If s and b are integers then  purpose of the following program fragment is to 

   b = s + b ;
   s = b - s ;
   b = b - s ;

 

A.

transfer the contents of s to b

B.

transfer the content of b to s

C.

exchange (swap) the contents of s and b 

D.

negate the contents of s and b

 

Answer : C

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.