About 27,900,000 results
Open links in new tab
  1. c - what is the unsigned datatype? - Stack Overflow

    46 unsigned means unsigned int. signed means signed int. Using just unsigned is a lazy way of declaring an unsigned int in C. Yes this is ANSI.

  2. Signed versus Unsigned Integers - Stack Overflow

    Unsigned can hold a larger positive value and no negative value. Yes. Unsigned uses the leading bit as a part of the value, while the signed version uses the left-most-bit to identify if the …

  3. c - Difference between signed / unsigned char - Stack Overflow

    An unsigned char is an unsigned value which is typically smaller than, and is guaranteed not to be bigger than, a short. A type char without a signed or unsigned qualifier may behave as either a …

  4. How to cast or convert an unsigned int to int in C? - Stack Overflow

    If an unsigned int and a (signed) int are used in the same expression, the signed int gets implicitly converted to unsigned. This is a rather dangerous feature of the C language, and one you …

  5. integer - Declaring an unsigned int in Java - Stack Overflow

    As of Java SE 8, new methods in the Integer class allow you to fully use the int data type to perform unsigned arithmetic: In Java SE 8 and later, you can use the int data type to represent …

  6. Unsigned keyword in C++ - Stack Overflow

    25 Does the unsigned keyword default to a data type in C++ Yes,signed and unsigned may also be used as standalone type specifiers The integer data types char, short, long and int can be …

  7. Comparison operation on unsigned and signed integers

    Incorrect, subtraction between int and unsigned int operands is evaluated as unsigned subtraction and the result is, of course, unsigned.

  8. C++ type unsigned long int - Stack Overflow

    unsigned long long, or unsigned long long int with the following additional point: (5) Each of the comma-separated sets designates the same type, except that for bit-fields, it is …

  9. Difference between size_t and unsigned int? - Stack Overflow

    There are 5 standard unsigned integer types in C: unsigned char unsigned short unsigned int unsigned long unsigned long long with various requirements for their sizes and ranges (briefly, …

  10. Signed to unsigned conversion in C - is it always safe?

    For converting signed to unsigned, we add maximum value of the unsigned value (UINT_MAX +1). Similarly what is the easy way to convert from unsigned to signed? Do we need to …