Here's the scenrio -
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int main()
{
uint8_t backoff;
char* value = "300000";
backoff=atoi(value);
printf("value = %s\n", value);
printf("backoff value = %d\n", backoff);
return (0);
}
Output is as -
value = 300000
backoff value = 224
Can someone please help me understand how this conversion happened ?