Purchase Solution

C library: hex to octal representation conversion

Not what you're looking for?

Ask Custom Question

Is their a built-in function in C that can be used to convert hexadecimal representation of a number to octal representation?

Purchase this Solution

Solution Summary

Solution gives a small C program that demonstrates how to read a number in hexadecimal representation and output it in octal representation?

Solution Preview

There is no single built-in function for the purpose, however you can use combination of scanf and printf family of functions (printf/scanf/fprintf/fscanf/sprintf/sscanf) to achieve the goal.

use format specification "%x" during scanning the ...

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Basic Networking Questions

This quiz consists of some basic networking questions.