Yes, absolutely correct. In the latest compilers of C++, the sizeof(long int) = sizeof(int).
On Fri, Apr 16, 2010 at 1:09 AM, Felipe Sodré Silva <[email protected]>wrote: > If you are using C/C++, long int is supposed to be 32-bit. If you want > 64-bit integer, you must use long long int. > > > On Thu, Apr 15, 2010 at 11:00 AM, tonka <[email protected]> wrote: > >> i was working with the large input data but then i found out that the >> long int datatype allocates 4 bytes of memory whereas it is supposed >> to be 64 bits. i am using vista 32-bit OS. in case i want to use 64- >> bit integers then what OS and compiler should i use? otherwise is >> there a way to allocate memory according to the desired size for >> integer data, something like if i want to allocate 10 bytes of memory >> for an integer then what should be the code? >> thanks in advance. >> tonka. >> >> On Apr 15, 4:45 pm, kirk79 <[email protected]> wrote: >> > Very true. I have tried many problems that work on small but fail on >> > large, and when I replace all 32 bit integers with 64 bit integers the >> > large file works. >> > >> > I now try to use long (64 bit integers) whenever there is a chance >> > that they will be required. >> > >> > On Apr 15, 9:39 pm, Nitin Kumar <[email protected]> wrote: >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "google-codejam" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-code%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-code?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "google-codejam" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-code%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-code?hl=en. > -- Qasim Zeeshan PUCIT, PU Alumni '04 Software Engineer Confiz Solutions http://qzeeshan.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "google-codejam" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-code?hl=en.
