Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Number Conversion Octal to Hexadecimal

Number Conversion Octal to Hexadecimal

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    djsproject
    wrote on last edited by
    #1

    Can somebody help me to write code for converting a hexadecimal no. to octal no. using pointer in C.I am not getting how to accept a hexadecimal no. from user and how to convert it in to octal equivalent using C.Thanking you in advance.

    T L D 3 Replies Last reply
    0
    • D djsproject

      Can somebody help me to write code for converting a hexadecimal no. to octal no. using pointer in C.I am not getting how to accept a hexadecimal no. from user and how to convert it in to octal equivalent using C.Thanking you in advance.

      T Offline
      T Offline
      Tim Craig
      wrote on last edited by
      #2

      Which part of this simple and solved a million times problem are you having trouble with?

      The wonderful thing about the Darwin Awards is that everyone wins, especially the members of the audience.

      1 Reply Last reply
      0
      • D djsproject

        Can somebody help me to write code for converting a hexadecimal no. to octal no. using pointer in C.I am not getting how to accept a hexadecimal no. from user and how to convert it in to octal equivalent using C.Thanking you in advance.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        I would suggest that you start by reading a book on number representation in computers. Then take a look here[^] for some useful links.

        It's time for a new signature.

        1 Reply Last reply
        0
        • D djsproject

          Can somebody help me to write code for converting a hexadecimal no. to octal no. using pointer in C.I am not getting how to accept a hexadecimal no. from user and how to convert it in to octal equivalent using C.Thanking you in advance.

          D Offline
          D Offline
          djsproject
          wrote on last edited by
          #4

          @Tim Sir I want to code it using pointers and by far there is no conversion directly from octal to hexadecimal.So it is not dat simple..... @Richard I read books n found out that there is no direct conversion and if u have read it properly i want the code in C not in .NET as the libraries are totally different.

          E 1 Reply Last reply
          0
          • D djsproject

            @Tim Sir I want to code it using pointers and by far there is no conversion directly from octal to hexadecimal.So it is not dat simple..... @Richard I read books n found out that there is no direct conversion and if u have read it properly i want the code in C not in .NET as the libraries are totally different.

            E Offline
            E Offline
            Emilio Garavaglia
            wrote on last edited by
            #5

            djsproject wrote:

            there is no direct conversion

            read the octal into an integer and write it as an hexadecimal.

            2 bugs found. > recompile ... 65534 bugs found. :doh:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups