c ++ sizeof (…)
#include <cstdlib>
#include <iostream>
int main(int argc, char *argv[])
{
cout << "size of String " << sizeof(string );
system("PAUSE");
return EXIT_SUCCESS;
}
Ausgabe
size of String = 4
Bedeutet das, dass, dasizeof(char) = 1 Byte (0 to 255)
, String kann nur @ enthalt4
Zeichen