You need a char array[9] in size, perhaps. you need a for i = 0 to 7 loop to scanf("%c", &array[i]),
perhaps. You could use %d to print the ascii value, like in this program:
Code:
/* show the system values (usually, ascii) */
#include <stdio.h>
int main() {
int i;
char str[] = {"abcdefghijklmnopqrstuvwxyz"};
printf("\n\n\n\n\n");
for(i=0;str[i]!='\0';i++) {
printf(" %c %3d %2X ", str[i], str[i], str[i]);
if(i % 5 == 4 && i)
putchar('\n');
}
i = getchar(); ++i;
return 0;
}
For the rest of your questions, I need to see the start of a program or psuedo code or something, from you.
I don't care if it's half C and half Zebra, mixed with Chinese, but you need to put up some effort on these.