perlperl
asked on
octal/deciamal conversion
What does this line do?
uint32_t val = <som value>
std::cout << std::oct << val << std::dec;
uint32_t val = <som value>
std::cout << std::oct << val << std::dec;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i got it, it reads the number in decimal and converts to octal. Thanks
ASKER
I am not sure what this line does
std::cout << std::oct << val << std::dec;
does it print the value in octal format?