int main()
{
int arr[] = { 6,7,8,9,10 };
int* ptr = arr;
*(ptr++) += 127;
cout << *ptr << " " << *(++ptr);//8 8
}
int main()
{
unsigned char a[] = {1,0};
unsigned char* e = a;
short x = *(short*)e;
cout << x;//1
}
int fun(int a[], int n)
{
if (n > 0)
{
return a[n - 1] + fun(a, n - 1);
}
else
{
return 0;
}
}
int main()
{
int arr[5] = { 1,2,3,4,5 };
int res = fun(arr, 5);
cout << res;//15
}