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);
}
First line is 555, second line is 2292222
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment