User Tools

Site Tools


cpp:basic_data_types

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cpp:basic_data_types [2021/04/25 14:39] – [Αυτόματη εξαγωγή τύπου δεδομένων] gthanoscpp:basic_data_types [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 76: Line 76:
   auto result = a + b;    // compiler automatically extracts the variable type.   auto result = a + b;    // compiler automatically extracts the variable type.
      
-  cout << "sizeof(result): " << sizeof(result); +  cout << "sizeof(result): " << sizeof(result) << endl
-  cout << "sizeof(int): " << sizeof(int); +  cout << "sizeof(int): " << sizeof(int) << endl
-  cout << "sizeof(long): " << sizeof(long);+  cout << "sizeof(long): " << sizeof(long) << endl;
  
   return 0;   return 0;
Line 96: Line 96:
   decltype(b) result;   decltype(b) result;
  
-  cout << "sizeof(result): " << sizeof(result); +  cout << "sizeof(result): " << sizeof(result) << endl
-  cout << "sizeof(int): " << sizeof(int); +  cout << "sizeof(int): " << sizeof(int) << endl
-  cout << "sizeof(long): " << sizeof(long);+  cout << "sizeof(long): " << sizeof(long) << endl;
      
   return 0;   return 0;
cpp/basic_data_types.1619361562.txt.gz · Last modified: 2021/04/25 13:39 (external edit)