A
A
alxandralexandov52020-04-30 15:00:17
C++ / C#
alxandralexandov5, 2020-04-30 15:00:17

Why is there a fixed size for integer types in C?

Greetings.
There are several questions:

1) Why do we need such data types as: int8_t, int16_t and so on. As far as I understand, for better portability of the code, because. on different platforms, the bit size of standard types is different. How true is this?

2) I also heard that these types are used in programming microcontrollers. Can they be used in regular scripts to better control virtual memory consumption?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2020-04-30
@galaxy

1) True
2) Possible

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question