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.
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.
Anything to do with programming games...
1 post • Page 1 of 1