Code:
#include <stdio.h>
void main()
{
int i;
int alpha[]={'a','b','c','d','e',
'f','g','h','i','j',
'k','l','m','n','o',
'p','q','r','s','t',
'u','v','w','x','y','z'};
int *ptr=alpha;
for (i=1;i<=26;i++)
{
printf("Element %d Contains Value: %d\n\n",i, *ptr);
ptr++;
}
}
Basically i am trying to make a type of coding program, you would type in a word or sentence and the program would convert it into a jumble of letters by adding lets say 2 to the ASCII code and printing the result, then i have to create another program to convert it back, i am not looking for anyone to do this for me, otherwise i won't learn anything, just a few tips and some links to some good articles that would help me.
thanks in advance