# int vs BIG INT

• 10-29-2001
rumi_red
int vs BIG INT
Hi!

My teacher wrote a big int, and she wants me to compare it to an int but the thing is I don't know all what an int can do.

What are all the things an int can do?

Here is what I managed to find out so far... am I missing anything?

--

unary operator + (value of argument)
unary operator - (negate)

binary operator - (subtraction)
binary operator * (multiplication)
binary operator / (division)
binary operator << (left shift)
binary operator >> (right shift)
binary operator += (addition with assignment)
binary operator -= (subtraction with assignment)
binary operator *= (multiplication with assignment)
binary operator /= (division with assignment)
binary operator <<= (left shift with assignment)
binary operator >>= (right shift with assignment)
unary operator ++ (increment [prefix])
unary operator ++ (increment [postfix])
unary operator -- (decrement [prefix])
unary operator -- (decrement [postfix])
binary operator % (modulus)
binary operator = (assignment)
unary operator ! (logical 'not')
binary operator == (equality)
binary operator != (inequality)

--

Thanks!
• 10-30-2001
Salem
Theres a few more

Bitwise
& and
| or
^ exclusive or
and the corresponding assignment versions
&=
|=
^=

Also bitwise not
~

Relational operators
< less than
<=
>
>=

Logical
&& and
|| or

ints are also used in array subscripts [], but you could never declare an array big enough that it would take a bigint to subscript it.