dev c
  • Introduction
  • Variable
  • Data Type
    • Data model
    • Data Alignment
      • stdint.h
  • Escape Sequence
  • First Chapter
  • How to C in 2016
  • Head Files
  • Struct
  • Compiler
    • GCC
    • Clang
  • Design Pattern
  • Pointer
    • Pointer 運算
    • With Array
    • New and Delete
    • Memory Allocation
    • Pointer to Pointer
    • char pointer
    • function pointer
  • STDIO
  • Variable-length argument
  • Struct
    • Struct and Pointer
    • Union
  • Advanced
    • pragma
  • C Library
    • assert.h
    • string.h
  • swap function
  • Function
    • Basics
    • Use function as args
  • Operator
    • Increment, Assignment, Decrement
  • Operators
  • Associative Array
  • 題庫
  • Array
    • Strings
Powered by GitBook
On this page

Was this helpful?

  1. Operator

Increment, Assignment, Decrement

Increment

++i // i = i + 1

i++ //

Decrement

--i // i = i - 1

i-- //

+=

a += b

a = a + b

-=

a -= b

a = a - b

*=

a *= b

a = a * b

/=

a /= b

a = a / b

%=

a %= b

a = a % b

&=

a &= b

a = a & b

= b`

`a = a

b`

^=

a ^= b

a = a ^ b

<<=

a <<= b

a = a << b

>>=

a >>= b

a = a >> b

PreviousOperatorNextOperators

Last updated 4 years ago

Was this helpful?