M
mdh
I wrote a little insignificant program, to help me write a more
significant one!!...that was supposed to print all Ascii values from 0
to 127:
#include <stdio.h>
# define UPPER_LIMT 127
int main (){
int i;
printf("%7s%7s\n\n", "Decimal", "Value");
for ( i=0; i<= UPPER_LIMT; i++)
printf( "%3d%7c\n", i, i);
return 0;
}
However, I would like to see, for example, 'TAB' instead of an
upside-down question mark, at decimal value '9'. Is there a
conversion I could use for this in printf?
Thanks in advance.
significant one!!...that was supposed to print all Ascii values from 0
to 127:
#include <stdio.h>
# define UPPER_LIMT 127
int main (){
int i;
printf("%7s%7s\n\n", "Decimal", "Value");
for ( i=0; i<= UPPER_LIMT; i++)
printf( "%3d%7c\n", i, i);
return 0;
}
However, I would like to see, for example, 'TAB' instead of an
upside-down question mark, at decimal value '9'. Is there a
conversion I could use for this in printf?
Thanks in advance.