Answer to Question #157607 in C++ for Usama Saleem

Question #157607

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-22T11:45:13-0500

The output will be the following:

555                                                                                                                                                                                
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