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 3359664
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:53:58+00:00 2026-05-18T02:53:58+00:00

Forgive me for such a basic question; this is (I suppose) more of an

  • 0

Forgive me for such a basic question; this is (I suppose) more of an English question than a programming question; but I think as software developers we make such statements on a fairly regular basis.

If I have this code:

int x = 0;

…does the above “assign x to 0“, or does it “assign 0 to x“?

It’s just been bugging me. Feel free to close if you know of a better place to be asking (though if someone provides a cogent answer before this question is closed, I will be happy).

Edit: The nice thing about the above code is that if I’m talking about it, I could really phrase it either way and it should be clear what I mean to any thinking human being (as 0 is not a variable). I just know I sometimes hit a mental wall when I try to explain a line like this:

x = y;

If I say “it assigns y to x“, I’m saying something that (surely) means the opposite of what I’d be saying if I said “it assigns x to y“; yet both seem reasonable!

Oh well…

  • 1 1 Answer
  • 1 View
  • 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-05-18T02:53:59+00:00Added an answer on May 18, 2026 at 2:53 am

    Webster.com should be pretty authoritative: For the verb “to assign”, they specifically give the example “assign a value to the variable” (and, for what it’s worth, that’s the way I’ve always heard the term used). In your example, you would assign the value 0 to the variable x.

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

Sidebar

Related Questions

Forgive me for this noob question, but is there such a setting that sets
Forgive my ignorance if this is 'a basic question'..... I have a method that
Forgive me for asking such a novice question, but I can't figure out how
Forgive me if this might be a dumb question but, I'm in an assembly
Forgive me if this is a simple question, but is a UISwitch a boolean
I think this is obvious, but it's not coming to me.....forgive me. Anyway, I
Forgive me if this has been asked before, but I assure you I've scoured
Forgive what might seem to some to be a very simple question, but I
Forgive me if this is a repeat question. I've searched StackOverflow and did not
Forgive me if this is a naïve question, however I am at a loss

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.