Q2-3-1
C
/*Q2-3-1*/
/*文字型データの取り扱い*/
#include <stdio.h>
int main()
{
char x,y,z;
x='0';
y=x+0x20;
z=x+0x40;
printf("%c \t %x \t %d \n",x,x,x);
printf("%c \t %x \t %d \n",y,y,y);
printf("%c \t %x \t %d \n",z,z,z);
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.