---
title: "What is predicate in c  ?"  
description: "What is predicate in c  ?"  
author: "Anonymous User"  
published: 2013-06-17  
updated: 2013-12-27  
canonical: https://www.mindstick.com/forum/1199/what-is-predicate-in-c  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 1 minute  

---

# What is predicate in c  ?

What is predicate in [c++](https://www.mindstick.com/blog/745/array-in-c-plus-plus)?\

## Replies

### Reply by Phagu MAhato

A predicate is any unary C++ function that returns true or false and returning Boolean\

### Reply by Anonymous User

Predicate is a special type of function which is used by several algorithms and containers, There are two variations of predicates: unary and binary. A unary predicate takes one argument, and a binary predicate has two arguments.


---

Original Source: https://www.mindstick.com/forum/1199/what-is-predicate-in-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
