I have an exercise for the user to type a word and it is transformed by their corresponding numbers from the ASCII table.
EXAMPLE: -sara- would print 115 97 114 97
it's the code:
NOTE: I've set a fixed value in the vector just for the test.
The result of this generates two problems:
at the moment of giving the values that he PULA the first value (type print macaw and no Sara)
And he also prints odd numbers like -14
char text ;
printf ("type a word");
scanf ("% c", text);
for (i = 0; i + 15)
printf ("Value of the element% d of the string =% d n", i, text[i])