how to find data size in c++ code example Example: how to find data size in c++ cout << "Size of char: " << sizeof(variable) << " byte(s)" << endl;