The answer is B bc obliteration is related to covering the document
<h2>Yes the swap method exchange parameter values if passed by reference or the value gets changed inside the function.</h2>
Explanation:
Since the program is not given, I will try to guide you about the mode of parameters.
The meaning of swap is interchanging the values. It can be done by using temporary variable or without using it (if the values are integers).
While passing the parameters, there are two ways, call by value/pass by value and call by reference/ pass by reference.
If call by value, then the value gets swapped only inside the function and will not reflected in the calling portion. Call by reference is other way round.
Answer:
ppl
Explanation:
asfafgdffsghsdfghdgsghdfghtrbd54445 ddfgg
Answer:
The above code print the text at three times.
Explanation:
- It is because the above code has one loop which executes three times. The loop executes for the value of i = 0,1 and 10.
- when the value of i is 0 then "++i" will increase the value 1 and the text will be printed.
- If the value of i=1, then the value of i is 2 in the second iteration and the again the text is printed, then the if condition gives the true result and the value of i will be 10.
- Then the loop executes for the last time when the value of i is 10.Then the value will be 11 because of the increment operator and the text will be printed for the third time.
- Then the while loop is not true for the 11 value of i and the loop will get terminated.