Hi,
I study C language. As an exercise I decided to write a program, that writes all 26 letters of english alphabet on one line.
I know that in ASCII:
a...97
b...98
........
z...122
I know how to make it using for loop, but I don't know how to convert 97 in dec to a character. I was looking for some functions (I have found atoi(), sscanf(), sprintf()) but I wasn't able to finish it. Could you please help me?
Thank you.Code:main() { int i; char s[1]; for(i=97;i<123;i=i+1){ s=atoi(i); /* I think here is the problem part */ printf("%c",s); } getch(); }