[ create a new paste ] login | about

Link: http://codepad.org/MledlqsC    [ raw code | output | fork ]

hmurcia - C++, pasted on Jan 13:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
using namespace std;

int main() {
    cout << sizeof(bool) << endl
         << sizeof(char) << endl
         << sizeof(int) << endl
         << sizeof(float) << endl
         << sizeof(double) << endl;
}


Output:
1
2
3
4
5
1
1
4
4
8


Create a new paste based on this one


Comments: