dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Home » Tip Bank » C++
Language: C++
Expertise: Beginner
Dec 1, 1999

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Eight-Byte Data Types

Question:
I am looking for a data type in C++ that takes eight bytes. I have tried long, long int, and so forth, but they are all four bytes on Windows NT. I need an eight-byte integer datatype for some encryption algorithm. Could you tell me what to do?

Answer:
Standard C++ does not define an eight-byte integer type. However, this situation will change pretty soon, because C9X (the new C draft standard) now defines the "long long" data type, which is a 64-bit integer.

In practice, most C++ compilers already define a non-standard integer type that holds eight bytes. Visual C++, for instance, defines __int64 and __uint64 for signed and unsigned eight-byte integers, respectively. You can use these types on Windows NT.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date