529 views
0 votes
0 votes

Options:

  1. 10, 12,14, 16, 18, 20
  2. 20, 18, 16, 14, 12, 10
  3. 12, 10, 16, 14, 20, 18
  4. NONE

1 Answer

Best answer
1 votes
1 votes

So , we got the initial list and the last while loop just print the list in reverse order .

So correct answer is (B) .

https://stackoverflow.com/questions/9086372/how-to-compare-pointers#:~:text=Two%20pointers%20of%20the%20same,2).&text=%5B...%5D,are%20null%2C%20they%20compare%20equal.

 

selected by

Related questions

0 votes
0 votes
2 answers
1
DAWID15 asked Dec 19, 2022
774 views
I’m getting 2 as the answer, but the correct one given by them is 5.Somebody please confirm.
0 votes
0 votes
0 answers
2
0 votes
0 votes
0 answers
3
0 votes
0 votes
1 answer
4
Rajsukh Mohanty asked Nov 10, 2023
186 views
Is the simplification that I have encircled, done right? because according to negation law (r ∨ ¬ r) ≡ T.