Write the output of the following
int main(){
int array[5]={5,960,87,30,22};
int *aptr = array;
cout << array[0] << *array << *aptr<<endl;
cout << array[4] << *array + 4 << *(array+4) << *(aptr+4);
}
The output will be the following:
555
2292222
Comments
Leave a comment