标签:out [] include 算术运算 namespace har stream name str
#include "stdafx.h"
#include <stdio.h>
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
int a[5] = { 1,2,3,4,5 };
int *ptr = (int *)(&a + 1);
printf("%d,%d\n", *(a + 1), *(ptr - 1));
//2,5
cout << (int)&a << endl;
cout << int(a) << endl;
cout << int(&a[0]) << endl;
return 0;
}
标签:out [] include 算术运算 namespace har stream name str
原文地址:https://www.cnblogs.com/guojun/p/9729575.html