topical media & game development 
  
 
 
 
 
  
    
    
  
basic-program-code-04-Ex4-02.c
? / 
basic-program-code-04-Ex4-02.c
  // EX4_02.CPP
  // Demonstrating array initialization
  include <iostream>
  include <iomanip>
  
  using std::cout;
  using std::endl;
  using std::setw;
  
  int main()
  {
     int value[5] = { 1, 2, 3 };
     int junk [5];
  
     cout << endl;
     for(int i = 0; i < 5; i++)
        cout << setw(12) << value[i];
  
     cout << endl;
     for(int i = 0; i < 5; i++)
        cout << setw(12) << junk[i];
  
     cout << endl;
     return 0;
  }
  
  
  
(C) Æliens 
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. 
In case of other copyright issues, contact the author.