dimanche 22 février 2015

4 bytes string vs 4 bytes integer readed as a string

Is it true that reading string that consists of 4 characters including null-terminator, declared as an array/pointer will be readed slower (byte by byte?) than integer value, readed as a string like so:



static int val = 'C' + '+' * 256 + '+' * 256 * 256;
printf("%s", (char*)val);

Aucun commentaire:

Enregistrer un commentaire