In C language, to output the ASCII code value of a character, you only need to use %d format and printf function to output it. Because in the format of %d, character variables are converted into integers, and the values are ASCII code values.
Write the function as follows:
Invalid? print_asc(const? Charles? *s)
{
while(*s)? printf("%d?" ,* s++);
}