Wipro Question:

Download Job Interview Questions and Answers PDF

What is Post-Condition in Wipro?

Wipro Interview Question
Wipro Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What is Precondition in Wipro?How can we sort the elements of the array in descending order in Wipro?