Playground
#include <iostream> using namespace std; int main() { cout << "tip: bool golemina: " << sizeof(bool) << " bajt(i)" << endl; cout << "tip: char golemina: " << sizeof(char) << " bajt(i)" << endl; cout << "tip: wchar_t golemina: " << sizeof(wchar_t) << " bajt(i)" << endl; cout << "tip: short golemina: " << sizeof(short) << " bajt(i)" << endl; cout << "tip: int golemina: " << sizeof(int) << " bajt(i)" << endl; cout << "tip: long golemina: " << sizeof(long) << " bajt(i)" << endl; cout << "tip: long long golemina: " << sizeof(long long) << " bajt(i)" << endl; cout << "tip: float golemina: " << sizeof(float) << " bajt(i)" << endl; cout << "tip: double golemina: " << sizeof(double) << " bajt(i)" << endl; cout << "tip: long double golemina: " << sizeof(long double) << " bajt(i)" << endl; return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!