Assignment

noun

say it: “uh-SYNE-ment” /əˈsaɪnmənt/

Storing a value in a variable with the = sign.

What is Assignment in C#?

Assignment — Storing a value in a variable with the = operator.

class Game
{
    void UpdateScore()
    {
        int score = 10;
        score = score + 5;
    }
}

In a sentence

  • “The assignment score = score + 7; adds a touchdown to the score.”

Level: Novice · More C# terms at this level

Updated

In other subjects