SHARE
TWEET

BeforeDT

a guest Dec 16th, 2015 117 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main(void)
  2. {
  3.     int alone;
  4.  
  5.     long int lint1, *lintptr1, lintaray10[10];
  6.    
  7.     long int lint2 = 3, *lintptr2,
  8.             lintaray2[2] = { 1, 2 };
  9.            
  10.     int int3 = f(), intarray[] = { 1, 2, 3, 4 };
  11.     const int cint3 = 4, cintarray[] = { 1, 2, 3, 4 };
  12.  
  13.     const int cx = 1, cy = 2;
  14.     volatile int vx, vy;
  15.  
  16.     signed char sc1 = 'h', sc2;
  17.     long long ll1, ll2, ***t;
  18.  
  19.     const char *literal = "HiClang", *literal2 = "empty", literal3[] = "three";
  20.  
  21.     struct Structy structA, *structB, structC = { 2 };
  22.     StructT structAA, *structBB, structCC = { 2 };
  23.  
  24.     Structy2 structAAA, **structBBB, structCCC = { 2 };
  25.  
  26.     int *ptrArray[3], dummy, **ptrArray2[5], twoDim[2][3], *twoDimPtr[2][3];
  27.  
  28.     auto autoInt = 3, autoInt2 = 4;
  29.     decltype(int()) declA = 4;
  30.     decltype(int()) declAA = 5, decB = 3;
  31.  
  32.     std::vector<int> vectorA = {1,2}, vectorB = {1,2,3};
  33.  
  34.     int ff(1), ffx{2};
  35.     StructT structAAB = StructT();
  36.    
  37.     return 0;
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top