Math, asked by rebeccazualyahoocom, 5 months ago

What is an assignment statement? Explain with an example.

Answers

Answered by manshi007963
2

Answer:

An assignment statement gives a value to a variable. For example, x = 5; ... the variable may be a simple name, or an indexed location in an array, or a field (instance variable) of an object, or a static field of a class; and. the expression must result in a value that is compatible with the type of the variable .

Answered by wanda19
2

Answer:

An assignment statement gives a value to a variable. For example, x = 5; ... the variable may be a simple name, or an indexed location in an array, or a field (instance variable) of an object, or a static field of a class; and. the expression must result in a value that is compatible with the type of the variable .

Similar questions
Math, 2 months ago