What is are some usages of fixed width integer types in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is are some usages of fixed width integer types in c++?

I just discovered these fixed width integer types while experimenting. For example Int32 or Int64. In what situation would one want to use one or the other?

6th Nov 2017, 4:19 AM
21kHzBANK21kHZ
21kHzBANK21kHZ - avatar
2 Answers
0
Precise sized integers are used in cryptographic functions. This is so the function can exactly follow a specification. Example: md5 checksum.
6th Nov 2017, 6:19 AM
Jared Bird
Jared Bird - avatar
- 1
Do you know any examples?
6th Nov 2017, 5:00 AM
21kHzBANK21kHZ
21kHzBANK21kHZ - avatar