mercredi 18 mars 2015

Declaring an array with a hexadecimal number


What is the benefit in declaring an array with a size in hexadecimal format? Does the compiler convert the hexadecimal to binary quicker than it would decimal numbers?


For example:



int array [0x1480];
int array0[5248];
sizeof(array)/sizeof(*array) == sizeof(array0)/sizeof(*array0) //simply a true statement



Aucun commentaire:

Enregistrer un commentaire