Characters and numbers: output
/*Characters and numbers */
#include <stdio.h>
void main()
{
char first = 'Y';
char second = 40;
printf("\n first as a letter looks like this - %c", first);
printf("\n first as a number looks like this - %d", first);
printf("\n second as a letter looks like this - %c", second);
printf("\n second as a number looks like this - %d\n", second);
}
Related examples in the same category