Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8788745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:12:45+00:00 2026-06-13T22:12:45+00:00

I was looking through an existing code in C wherein there is a check

  • 0

I was looking through an existing code in C wherein there is a check for no’s in a particular range 100 to 899. I wanted to add one more condition along with that the no can have the value 1FE. I should not convert it to a decimal no. But I need to check for this hexadecimal value.
My doubt here is, How will the hardware interpret the comparision of the decimal and the hexadecimal. The hardware will interpret the values in zero’s and one’s. So will it convert the decimal and hexadecimal no’s to binary to check the value ? (As 1FE when converted to decimal is 510 which will be included within the no 899).Please help to understand.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:12:46+00:00Added an answer on June 13, 2026 at 10:12 pm

    int x = 0x1fe; and int x = 510; are the exact same thing to the computer (or more specifically, to the compiler — the actual hardware will never see “0x1fe” or “510” — it will only see the binary version) so your question doesn’t make much sense.

    Changing the base only changes the representation of a value; it doesn’t change the actual value. If you have 1012 apples, and you have 510 apples, you still have the same amount of apples.

    The representation computers use just happens to be binary. (Well, doesn’t ‘just happen’ to be, but…. yeah.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I barely know c++.Not an expert. I am looking through an already existing code.
I'm looking through some existing code in a project I'm working on, and I
I'm looking at some existing code and added a few printf lines. There's a
Looking through the massive android source code, anyone on here who know where exactly
While looking through some old code I came across this gem: MyObject o =
I have been looking through the source code for the Flash-based Google TV example
After looking through the code for building custom credential providers for Windows 7, I
I'm looking at some existing code that is generating a salt which is used
Looking through multiple iOS crash logs, I'm finding stack traces which are near identical
Looking through decimal.py , it uses NotImplemented in many special methods. e.g. class A(object):

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.