我对这段代码感到好奇:
cout << 'test'; // Note the single quotes.
Run Code Online (Sandbox Code Playgroud)
给我一个输出1952805748.
我的问题:输出是内存中的地址还是什么?
为什么这个程序提供输出 'y'
#include <stdio.h>
int main(void) {
char ch='abcdefghijklmnopqrstuvwxy';
printf("%c",ch);
return 0;
}
Run Code Online (Sandbox Code Playgroud)