Answer to Question #157628 in C++ for zain ul abdeen

Question #157628

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);

}



1
Expert's answer
2021-01-27T06:01:24-0500

First line is 555, second line is 2292222

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS