Array Initialization

The following code illustrates an additional method for initializing the array in our example:

C Code
  1: int main()
  2: {
  3:   short age[4] = {23, 34, 65, 74};
  4:   return 0;
  5: }
C++ Code
  1: int main()
  2: {
  3:   short age[4] = {23, 34, 65, 74}; 
  4:   return 0;
  5: }