integers? 32bit and 64bit

Anything to do with programming games...

integers? 32bit and 64bit

Postby winfiddler » Wed May 30, 2007 12:32 pm

I am starting to write a program in C++ (also looking at VB6, because I am having learn C as I go) that generates prime numbers.
I am puzzled about 32bit and 64bit integers. I know that they will hold different maximum values, but I am unsure about whether I have to specify them in code. Can I write with 32bit integers in mind and then run the code on a 64bit machine (I am talking wintel based machines) and the integers automatically become 64bit?
My machine is 32bit and hence I have know way of testing the 64bit capability. So second question is, is it possible to use 64bit (or larger) integers on a 32bit machine?
Also does the same apply to arrays?

Thanks in advance.
Matthew Mills
P.S. It may take me a day or two to reply, as I am writing this at my local library. Internet access is none existence in my house.
Posts: 1
Joined: Wed May 02, 2007 4:41 pm

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest