Questions tagged [integer-arithmetic]

Anything related to integer arithmetic, i.e. arithmetic operations on integer numbers. This is mostly relevant for languages which represent integer numbers with specific data-types (e.g. `int` or `long` in C, C++ or Java).

Anything related to integer arithmetic, i.e. arithmetic operations on integer numbers. This is mostly relevant for languages which represent integer numbers with specific data-types (e.g. int or long in C, C++ or Java).

452 questions
-5
votes
1 answer

Computer architecture calculation values

I have homework and i'm confused.... is address or value in the brackets??? Given the following memory and register values.  Word 700 contains 740  Word 710 contains 750  Word 720 contains 710  Word 730 contains 740  Word 740 contains 700 …
-5
votes
3 answers

Adding 1 to a number in C

I have to add 1 to a number in C. I have to do this without arithmetic operators like '+', '++', .. so on. I have written following line of code. int a = 1234; int b = 1; printf("%d", a ^ b); This works fine till the integer limit is reached i.e.,…
puneet
  • 31
  • 1
  • 2
1 2 3
30
31