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

}



Expert's answer

The output will be the following:

555                                                                                                                                                                                
2292222
LATEST TUTORIALS
APPROVED BY CLIENTS