I have the following code:
char buf[] = {0x45, 0x76, 0x72, 0x23, 0x12};
int main(void)
{
int i;
for (i = 0; i<=sizeof(buf); ++i){
printf("%c\n", buf[i]);
}
}
What I want to do is take buf[i] when it is printed out and and make 0x45 read 0x46. Essentially, how do I add 1 to each value as it is going through the for loop?
Use
+