Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Assignment

Assignment

To assign means to store a value in a variable.

Related concepts:  ValueVariable

Closest Wikipedia entry:  Assignment (computer science)

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Assignment is based on principled authoritative sources such as:

Types and Programming Languages - Section 13

Misconceptions about Assignment
17 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
AssignCompares
= compares two values
Misconception
AssignmentCopiesObject
Assignment copies the object
Misconception
AssignmentNotExpression
An assignment a=b is not an expression
Misconception
ExpressionAssigns
An expression that reads a variable also updates its value after the evaluation
Misconception
LocalVariablesAutoInitialized
Local variables are automatically initialized
Misconception
MustInitializeFieldInConstructor
Constructors must assign values to all fields
Misconception
ThisAssignable
One can assign to this
Misconception
VariablesHoldExpressions
= stores an expression in a variable

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors