测试以下内容:
1、三字符序列;
2、wchar_t
3、打印输出g/p/o/x
#include <stdio.h>
#include <math.h>
int main(void)
{
double a;
int *pi,buf[20];
int no;
wchar_t chi;
chi = '鬼';
printf("鬼 = %c\t??=#??/n%d\n",chi,chi);
pi = buf;
for(int i = 0;i < 20;i++){
a = 0.123456789 * pow(10,i-10);
pi??(i??) = i;
printf("%.*g\n%n",i,a,&no);
printf("%d char%s been typed.\n",no,(no > 1) ? "s have" : " has");
printf("i = %d = ox%04x = 0%04o\n",*(pi+i),i,i);
printf("*pi is stroed in the address: %p\n",pi + i);
}
}