C++ examples for Operator:sizeof
To know the size in bytes of floating point variables for your computer.
#include <iostream> using namespace std; int main()/*www . j a v a 2s. c om*/ { cout << "The size of floating-point variables on \n"; cout << "this computer is " << sizeof(float) << "\n"; return 0; }