Wipro Question: Download Wipro PDF

What is Post-Condition in Wipro?

Tweet Share WhatsApp

Answer:

A condition that should return true before returning from an invoked function. In order to use a function correctly a post condition should return true. Taking a stack as an example, is empty () must necessarily be true after pushing the element into the stack when an element is pushed. The function is empty () is a post condition.

Download Wipro PDF Read All 35 Wipro Questions
Previous QuestionNext Question
What is Precondition in Wipro?How can we sort the elements of the array in descending order in Wipro?