1.

What will be the resulting array after reversing arr[]={3,5,4,2}?(a) 2,3,5,4(b) 4,2,3,5(c) 5,4,2,3(d) 2,4,5,3Question is from Arrays Types topic in portion Arrays Types of Data Structures & Algorithms IThis question was posed to me in my homework.

Answer»

The correct answer is (d) 2,4,5,3

Easy explanation - The resulting ARRAY UPON REVERSING after reversal is ARR[]={2,4,5,3}. We can implement an algorithm for this PURPOSE in various possible ways.



Discussion

No Comment Found

Related InterviewSolutions