c++数组与指针知识集锦
1、 // by 鸟哥 qq1833183060 数组与指针 # include <iostream> using std :: cout ; int main ( ) { int a [ 10 ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 } ; int j = 6 ; cout << a [ j ] << " " << * ( & a [ 0 ] + j ) << " " << * ( a + j ) << " " << * ( j + a ) << " " << j [ a ] << std :: endl ; } //输出为 7 7 7 7 7 运行结果: 7 7 7 7 7 来源: CSDN 作者: 鸟哥01 链接: https://blog.csdn.net/sinat_18811413/article/details/104138046