65,208
社区成员
发帖
与我相关
我的任务
分享int i = 'abcd'; // i=0x61626364
printf("%x%x%x%x, %x = %x\n", 'a', 'b', 'c', 'd', i, 0x61626364);#include <stdio.h>
#include <windows.h>
void main()
{
int a = (DWORD)'ab';
int b = 'ab';
int c = 'a';
int d = 'b';
printf("The result is:%d\n",a);
printf("\nThe result is:%d\n",b);
printf("\nThe result is:%d\n",c);
printf("\nThe result is:%d\n",d);
}The result is:24930
The result is:24930
The result is:97
The result is:98
Press any key to continue