This commit is contained in:
Estom
2021-10-13 22:48:16 +08:00
parent 6cef933e11
commit 0bd2f8ee5f
6 changed files with 68 additions and 8 deletions

12
code_segment/a.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include<iostream>
using namespace std;
int main(){
// int a=1;
// int b= 255;
// int c = (a<<(sizeof(double)))|(b>>sizeof(int));
// cout<<c<<endl;
int arr[5]={5,6,7,8,9};
int *b = (int *)(&arr+1);
cout<<*(arr+1)<<*(b-1)<<endl;#i22
return 0;
}