2-6
C
/*E2-6*/
/*文字型データの取り扱い*/
#include <stdio.h>
int main()
{
char p,q,r;
p='9';
q='M';
r='m';
printf("%c \t %d(10) \t %x(16) \n",p,p,p);
printf("%c \t %d(10) \t %x(16) \n",q,q,q);
printf("%c \t %d(10) \t %x(16) \n",r,r,r);
return 0;
}
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.