Listing 4

  void displayData(long array[],int size){
    int count = 0;
    while(count < size){
      cout << array[count] << " ";
      count = count + 1;
    }//end while loop
    cout << endl;
  }//end displayData
  
Listing 4