| | |
unsigned int delay and unsinged long dealy
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2007
Posts: 13
Reputation:
Solved Threads: 0
Hi
wait (unsigned int delay)
wait (unsinged long delay)
Whats the difference between the two, i forgot to test this out, basically its part of a delay for seven segemtn display which just cycles through numbers, what would be the difference between the two?
thanks for nay help
wait (unsigned int delay)
wait (unsinged long delay)
Whats the difference between the two, i forgot to test this out, basically its part of a delay for seven segemtn display which just cycles through numbers, what would be the difference between the two?
thanks for nay help
Last edited by Villanmac; Jan 25th, 2008 at 6:04 am.
•
•
•
•
This is because the storable range of long is larger than int.
unsigned long, 4 bytes
0 to 4,294,967,295
unsigned int, (also) 4 bytes
0 to 4,294,967,295
Even in 64bit programming (on Windows with Visual Studio) they are the same size and hold the same range of values.
Size of integer types is dependent on the architecture being supported:
•
•
•
•
There are four signed integer types: “signed char”, “short int”, “int”, and “long int.” In this
list, each type provides at least as much storage as those preceding it in the list. Plain ints have the natural size suggested by the architecture of the execution environment the other signed integer types are provided to meet special needs.
"We Americans got so tired of being thought of as dumb by the rest of the world that we went to the polls last November and removed all doubt."
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
![]() |
Other Threads in the C++ Forum
- Previous Thread: Dev C++: Remove Spaces
- Next Thread: Help on a School Project
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings temperature template test text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






