CJCoding With Joseph
← Back to Question List
C++ Code Walkthrough #42

Sizes of Fundamental Types

mediumOperators

📄 Code

Read carefully — what does this print?
1#include <iostream>
2using namespace std;
3int main() {
4 cout << sizeof(int) << " " << sizeof(char) << " " << sizeof(double) << endl;
5 return 0;
6}

🎯 Your Answer