Demonstrate C Operators

C_OPERATORS is a C program which demonstrates the use of the built-in operators in C.

In C, operators include the arithmetic operators:

the bit operators: the logical operators (note that there is no "exclusive OR" operator): the increment operators:


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


C_OPERATORS is available in a C version.

Related Data and Programs:

C_INTRINSICS, a C program which illustrates the use of intrinsic functions supplied by the C language.


  1. Samuel Harbison, Guy Steele,
    C: A Reference Manual,
    Third Edition,
    Prentice Hall, 1991,
    ISBN: 0-13-110933-2,
    LC: QA76.73.C15H38.
  2. Brian Kernighan, Dennis Ritchie,
    The C Programming Language,
    Second Edition,
    Prentice Hall, 1988,
    ISBN: 0-13-110362-8,
    LC: QA76.73C15.K47.

Source Code:

List of Routines:

You can go up one level to the C source codes.

Last revised on 28 May 2012.