Wipro Question: Download Wipro PDF

What is Precondition in Wipro?

Tweet Share WhatsApp

Answer:

A condition that should return true when a member function is invoked. In order to use a function correctly a precondition should return true. If a precondition fails to hold, an operation will not take responsibility to perform any action of sensibility. For example, the interface invariants of stack class respond nothing about pushing even though the stack is already full. In this scenario, sinful () is a precondition for push operation.

Download Wipro PDF Read All 35 Wipro Questions
Previous QuestionNext Question
What is Stack unwinding in Wipro?What is Post-Condition in Wipro?