C Programming Operators

Ace your homework & exams now with Quizwiz!

Less than (relational operator)

<

Assign shift-left equal (assignment operator)

<<=

Less than equal (relational operator)

<=

Assign equal (assignment operator)

=

Equal (relational operator test values for equality)

==

Logical Not (logical operator)

!

Not equal (relational operator)

!=

Modulus (arithmetic operator)

%

Assign modulus equal (assignment operator)

%=

Character (conversion character)

%c

Integer (conversion character)

%d

Floating-point (conversion character)

%f

String (conversion character)

%s

The address of (data operator)

&

Logical And (logical operator)

&&

Assign and equal (assignment operator)

&=

Parentheses

( )

Multiply (arithmetic operator)

*

Multi-line comment end

*/

Assign multiply equal (assignment operator)

*=

Add (arithmetic operator)

+

Increment (arithmetic operator)

++

Assign plus equal (assignment operator)

+=

Comma

,

Subtract (arithmetic operator)

-

Decrement (arithmetic operator)

--

Assign minus equal (assignment operator)

-=

Divide (arithmetic operator)

/

Multi-line comment start

/*

Single-line comment start

//

Assign divide equal (assignment operator)

/=

Colon

:

Greater than (relational operator)

>

Greater than equal (relational operator)

>=

Assign shift-right equal (assignment operator)

>>=

Get the size of (data operator)

Size of ( )

Array subscript (data operator)

[ ]

Braces

{ }

Assign or equal (assignment operator)

|=

Logical Or (logical operator)

||


Related study sets

Table 6-2 and Table 6-3: Muscle of Mastication and Neck

View Set

MRU2.4: Another Look at Comparative Advantage

View Set

Lewis Chapter 58 Chronic Neurologic Problems Questions, LEWIS: Chapter 61: Peripheral Nerve and Spinal Cord Problems, Lewis Ch 59 - Dementia and Delirium, Chapter 55 (Lewis): Nervous System

View Set

Types of Reliability and Validity

View Set

Chapter 8- Real Estate sales contract

View Set

Ch. 8 Ancient China Lesson 2 - China's Ancient Philosophies

View Set