const unsigned variable

Aug 4, 2013 at 5:30pm
What is a const unsigned variable? This is the first time I've seen it before. It had no explicit declaration whether it's an integer or floating point number. So I decided to test it out by typing it into MSVS 2010 Ultimate.

 
  const unsigned variable = 0;


When I hovered over variable it said const unsigned int. Can someone explain what this means?

Thanks
Aug 4, 2013 at 5:35pm
unsigned and unsigned int are equivalent as signed and signed int though sometimes you may not substitute unsigned for unsigned int.:)
Aug 4, 2013 at 5:36pm
I see so by declaring something unsigned makes it an int.
Aug 4, 2013 at 5:41pm
Declaring an object unsigned makes it an unsigned int.
Aug 4, 2013 at 5:41pm
Yes that's what I meant :)
Topic archived. No new replies allowed.