#include <stdio.h>
int main( void )
{
char c1 = 'a';
char c2 = 90;
/* Print variable c1 as a character, then as a number */
printf("/nAs a character, variable c1 is %c", c1);
printf("/nAs a number, variable c1 is %d", c1);
printf("/nAs a character, variable c2 is %c", c2);
printf("/nAs a number, variable c2 is %d/n", c2);
return 0;//
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266644.html