![]() |
| | #1 |
| Registered User Join Date: Oct 2001
Posts: 3
| 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 | |
| | #2 |
| and the hat of Jobseeking 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. |
| Salem is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
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 |