Link to home
Start Free TrialLog in
Avatar of perlperl
perlperl

asked on

octal/deciamal conversion

What does this line do?

uint32_t val = <som value>
std::cout << std::oct << val << std::dec;
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of perlperl
perlperl

ASKER

I know the first line ;)

I am not sure what this line does
std::cout << std::oct << val << std::dec;

does it print the value in octal format?
i got it, it reads the number in decimal and converts to octal. Thanks