C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-29-2001, 08:55 PM   #1
Registered User
 
Join Date: Oct 2001
Posts: 3
Question 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 + (addition)
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!
rumi_red is offline   Reply With Quote
Old 10-30-2001, 04:15 AM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,710
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.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to combine these working parts?? transgalactic2 C Programming 0 02-01-2009 08:19 AM
Reading characters from a string and assigning them to a single char??? DonGenaro C++ Programming 26 11-30-2007 03:51 AM
Screwy Linker Error - VC2005 Tonto C++ Programming 5 06-19-2007 02:39 PM
newbie needs help with code compudude86 C Programming 6 07-23-2006 08:54 PM
Quack! It doesn't work! >.< *Michelle* C++ Programming 8 03-02-2003 12:26 AM


All times are GMT -6. The time now is 05:48 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22