- Joined
- May 1, 2022
- Messages
- 1
- Reaction score
- 0
If i have a sprintf function like
so does buffer contain data like this?
buffer[0] = '-'; // ascii value of -
buffer[1]='1'; // ascii value of 1
buffer[2] ='0'; // ascii value of 0
Please advise.
C:
void send(void)
{
char buffer[10];
int value=-10;
sprintf(buffer,"%d",value);
}
buffer[0] = '-'; // ascii value of -
buffer[1]='1'; // ascii value of 1
buffer[2] ='0'; // ascii value of 0
Please advise.