Difference among INT, INT32, LONG, LONG32...?
-
INT, INT32, LONG and LONG32 all are 32-bit signed integer. Then what is the main difference among them? Also I have saw other many similar data types (e.g LONGLONG, LONG64. What is the need of this difference? Any one please describe about it. Regards Maxim
-
INT, INT32, LONG and LONG32 all are 32-bit signed integer. Then what is the main difference among them? Also I have saw other many similar data types (e.g LONGLONG, LONG64. What is the need of this difference? Any one please describe about it. Regards Maxim
-
I dont think so. All are used in VC++ on same compiler(VS 2005) and same platform(Windows). Please describe the difference. By the way, Thanks for your effort.:)
-
I dont think so. All are used in VC++ on same compiler(VS 2005) and same platform(Windows). Please describe the difference. By the way, Thanks for your effort.:)
see int and long both will be 4 bytes each on windows(VC++). but still they are kept as is may be for backward compatibility. If you really want the difference try to find sizes for these data types on all the windows versions for above then you will get an idea.
Regards, Sandip.
-
see int and long both will be 4 bytes each on windows(VC++). but still they are kept as is may be for backward compatibility. If you really want the difference try to find sizes for these data types on all the windows versions for above then you will get an idea.
Regards, Sandip.
Please tell me about all not only two. Also, I want to know about INT, INT32, LONG, LONG32 not int and long. If you can, please compare atleast these four data types. Regards, Maxim.
-
Please tell me about all not only two. Also, I want to know about INT, INT32, LONG, LONG32 not int and long. If you can, please compare atleast these four data types. Regards, Maxim.
Have you problems with documentation?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke -
Please tell me about all not only two. Also, I want to know about INT, INT32, LONG, LONG32 not int and long. If you can, please compare atleast these four data types. Regards, Maxim.
i am trying to tell you only one thing is today there might not be any difference but still these will be kept as is for compatibility. Tomo with vista and 64bit machines coming in , int , long, int64 all might have 64 bit values but still they will be maintained different for compatibility.
Regards, Sandip.
modified on Monday, June 2, 2008 8:03 AM
-
Have you problems with documentation?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeNo, not at all. But I am little bit confused. I am just curious to know the difference among them on same windows version with same compiler. I am talking about their uses and importance also need. I have used all in my program and not found any difference. That is why I am asking here. Because you all are experienced and experts. Please guide me. Sorry, If i am wrong or rude anywhere. Regards, Maxim.
-
Have you problems with documentation?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain ClarkeSir, Can I know the reason of down voted? Is my way of asking question is not right? I am new here in this forum. I was just trying to explain me before all of you...:) Thanks. Maxim.
-
Please tell me about all not only two. Also, I want to know about INT, INT32, LONG, LONG32 not int and long. If you can, please compare atleast these four data types. Regards, Maxim.
some info [What's the difference between int and INT, long and LONG, etc? ^] and type suffixed with number of bits like INT32, INT16, ... is typedefed to guaranteed the number of bits it uses, say INT32 is sure to store 32 bit value, while INT is not; depends on platform.
-
i am trying to tell you only one thing is today there might not be any difference but still these will be kept as is for compatibility. Tomo with vista and 64bit machines coming in , int , long, int64 all might have 64 bit values but still they will be maintained different for compatibility.
Regards, Sandip.
modified on Monday, June 2, 2008 8:03 AM
SandipG wrote:
Tomo with vista and 64bit machines coming in , int int32 int64 all might have 64 bit
if int32 have 64 bit then it is meaningless.
-
some info [What's the difference between int and INT, long and LONG, etc? ^] and type suffixed with number of bits like INT32, INT16, ... is typedefed to guaranteed the number of bits it uses, say INT32 is sure to store 32 bit value, while INT is not; depends on platform.
-
some info [What's the difference between int and INT, long and LONG, etc? ^] and type suffixed with number of bits like INT32, INT16, ... is typedefed to guaranteed the number of bits it uses, say INT32 is sure to store 32 bit value, while INT is not; depends on platform.
Helpful link. Thanks. And your answer is also very supportive. Giving you 5 votes...:)
-
INT, INT32, LONG and LONG32 all are 32-bit signed integer. Then what is the main difference among them? Also I have saw other many similar data types (e.g LONGLONG, LONG64. What is the need of this difference? Any one please describe about it. Regards Maxim
The difference on the windows platform isnt there, but if you use the source-code on other platforms or other compilers than from MS there 'maybe' differences.:~ But LONGLONG, LONG64 are resolved to 64-bit data on WIN64 so there can stroe 64-bit data!!!
Greetings from Germany
-
Sir, Can I know the reason of down voted? Is my way of asking question is not right? I am new here in this forum. I was just trying to explain me before all of you...:) Thanks. Maxim.
I can only guess (since I didn't down vote you): possibly your post appeared a bit rude. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke