122. Data Conversion and Encoding-ii

Question.5

A developer allocates a buffer for converting a uint32_t to a decimal string:

char str[5];
uint32_t val = 4294967295;  // Max uint32_t
my_itoa(val, str);

The maximum value of uint32_t is 4,294,967,295 (10 digits). What happens?

Need Help? Refer to the Quick Guide below

Select Answer