#include <iostream>
#include <string.h>
using namespace std;
int main()
{
char x[100]="hello";
int s=strlen(x);
cout<<&(x[0]);
}
Run Code Online (Sandbox Code Playgroud)
如果我编译并运行它,
输出是你好的
为什么输出不是字符'h'的地址?
| 归档时间: |
|
| 查看次数: |
115 次 |
| 最近记录: |