What is the C program to convert a binary number to octal number?

Answer:
printf ("%d is %o in octal\n", x, x);
First answer by NevemTeve. Last edit by NevemTeve. Contributor trust: 172 Question popularity: 2 [recommend question].