设置输出p进制,无论我输入什么结果老是显示p进制为a
附上代码,不知是不是代码的问题#include<stdio.h>
int main(void)
{
float num;
printf("Enter a floating-point value:");
scanf("%f",&num);
printf("fixed-point notation:%f\n",num);
printf("exponential notation:%e\n",num);
printf("p notation:%a\n",num);
return 0;
}