x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

reverse the array

Answer

Reverse the array.

Elements are first being pushed to the stack from array A, and then popped and stored into array B.

A stack is a Last In First Out data structure hence element pushed last will be popped first hence array B will be reverse of array A.

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer