| | |
unsigned int delay and unsinged long dealy
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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.
Everyone's gotta believe in something. I believe I'll have another drink.
~~~~~~~~~~~~~~~~~~
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
Views: 1179 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






