for a hex conversion, Is it more efficient to do this :
Printit is the char whose low order bits represent the nibble to print
cout << "0123456789ABCD EF" [ Printit ] ;
or :
const char hexdigits [17] = "0123456789ABCD EF" ;
cout << hexdigits [ Printit ] ;
Or doesn't it matter ?
Thanks
Joe
Printit is the char whose low order bits represent the nibble to print
cout << "0123456789ABCD EF" [ Printit ] ;
or :
const char hexdigits [17] = "0123456789ABCD EF" ;
cout << hexdigits [ Printit ] ;
Or doesn't it matter ?
Thanks
Joe
Comment