Operators in C and C++ - Table

Table

For the purposes of this table, a, b, and c represent valid values (literals, values from variables, or return value), object names, or lvalues, as appropriate.

"Can overload" means that the operator can be overloaded in C++. "Included in C" means that the operator exists and has a semantic meaning in C (operators are not overloadable in C).

Read more about this topic:  Operators In C And C++

Famous quotes containing the word table:

    “When you got to the table you couldn’t go right to eating, but you had to wait for the widow to tuck down her head and grumble a little over the victuals, though there warn’t really anything the matter with them. That is, nothing only everything was cooked by itself. In a barrel of odds and ends it is different; things get mixed up, and the juice kind of swaps around, and the things go better.”
    —Mark Twain [Samuel Langhorne Clemens] (1835–1910)

    “In this sad state, God Tender Bowells run
    Out streams of Grace: And he to end all strife
    The Purest Wheate in Heaven, his deare-dear Son
    Grinds, and kneads up into this Bread of Life.
    Which Bread of Life from Heaven down came and stands
    Disht on thy Table up by Angells Hands.”
    —Edward Taylor (1645–1729)

    “Remember thee?
    Ay, thou poor ghost, whiles memory holds a seat
    In this distracted globe. Remember thee?
    Yea, from the table of my memory
    I’ll wipe away all trivial fond records,
    All saws of books, all forms, all pressures past
    That youth and observation copied there,
    And thy commandment all alone shall live
    Within the book and volume of my brain,”
    —William Shakespeare (1564–1616)