how to find data size in c++
cout << "Size of char: " << sizeof(variable) << " byte(s)" << endl;
how to find data size in c++
cout << "Size of char: " << sizeof(variable) << " byte(s)" << endl;
C++ SizeOf
cout << "The sizeof(char) is " << sizeof(char) << " byte/s" << endl;
cout << "The sizeof(short) is " << sizeof(short) << " byte/s" << endl;
cout << "The sizeof(int) is " << sizeof(int) << " byte/s" << endl;
cout << "The sizeof(long) is " << sizeof(long) << " byte/s" << endl;
cout << "The sizeof(long long) is " << sizeof(long long) << " byte/s" << endl;
cout << "The sizeof(float) is " << sizeof(float) << " byte/s" << endl;
cout << "The sizeof(double) is " << sizeof(double) << " byte/s" << endl;
cout << "The sizeof(long double) is " << sizeof(long double) << " byte/s" << endl;
cout << "The sizeof(bool) is " << sizeof(bool) << " byte/s" << endl;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us