Advertisement
193030

[REV] Arrays C++

Feb 21st, 2020
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     static int defaultInizializedLocal[2];
  8.     int uninitialized[4];
  9.     int numbers[3] = [13,42,55];
  10.     char abc[] = {'a', 'a'+1, 99};
  11.     char xyz[] = "xyz";
  12.     float emptyArray[] = {};
  13.     double arrayWithDefaults[3] = {3.14};
  14.     int initList[] {13,42,49};
  15.    
  16.     return 0;
  17.    
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement