Which of the following is a logical unary functor?

a) logical_or<T> f;
b) logical_and<T> f;
c) logical_not<T> f;
d) negate<T> f;

1 thought on “Which of the following is a logical unary functor?”

  1. c
    Explanation: logical_and and logical_or requires two arguments to act upon whereas negate and logical_not requires only one argument but negate also produces non-logical results like negate of a number, therefore, it is not logical hence logical_not f; is an only logical functor.

Leave a Comment