我对以下程序有疑问,我无法理解以下程序的输出:
#include<stdio.h>
#include<conio.h>
main()
{
char c='1';
clrscr();
printf("%d",&c);
getch();
}
Run Code Online (Sandbox Code Playgroud)
在我的编译器中,它打印"-11",我正在使用Turbo C++.我知道,如果我使用" c"而不是" &c"它将打印49因为它是一个ASCII数字'1'.但它为什么打印 - 11当我使用" &c"时.