This is a discussion on unsigned within the C++ Programming forums, part of the General Programming Boards category; Unsigned is defined as unsigned int, am I right?...

  1. #1
    l2u is offline
    Registered User
    Join Date
    May 2006


    Unsigned is defined as unsigned int, am I right?

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    No. Not anymore. int is no longer the default type. You should name your types.

    The contrary is true though. short, int and long are signed by default.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Is there any default type anymore?

    I hope it's not anything silly
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Quote Originally Posted by Mario F.
    No. Not anymore.
    No type at all is no longer substituted by int, but a simple unsigned is still the same as unsigned int. See C++98, 7.1.5(2) and, the latter of which lists all valid combinations of simple type specifiers.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 08-11-2008, 11:02 PM
  2. Heap corruption using zlib inflate
    By The Wazaa in forum C++ Programming
    Replies: 0
    Last Post: 03-29-2007, 12:43 PM
  3. Replies: 16
    Last Post: 10-29-2006, 04:04 AM
  4. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 02:49 PM

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