Advertisements
Advertisements
Question
What is the form and meaning of the assignment statement?
Short Note
Solution
The assignment statement is used to assign values to the variables.
The variable on the left side of the assignment operator and a value on the right side.
Variable : = Value
shaalaa.com
Abstraction
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
If i = 5 before the assignment i := i - 1 after the assignment, the value of i is ______
If 0 < i before the assignment i := i - 1 after the assignment, we can conclude that ______
Initially, farmer, goat, grass, wolf = L, L, L, L, and the farmer crosses the river with a goat. Model the action with an assignment statement.
What is abstraction?
What is the difference between the assignment operator and the equality operator?