Char/Int Conversion
#include <stdio.h>
main()
{
char d;
d = 76;
printf("%c", d);
d = 'L';
printf(" %c %d", d, d);
}
prints
L L 76
Note that the ASCII code for 'L' is 76, see Appendix A, page 643.
This is program
pg72.c
.
Previous slide
Next slide
Back to first slide
View graphic version