Computer Science, asked by chrohitmaduri, 1 year ago

explain the use of assignment statements with example

Answers

Answered by Anonymous
9

Heya...

Here is your answer...

An assignment statement gives a value to a variable. For example, ... 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 .

Thanks...!!!

XD

Sorry baby 'wink'

Answered by Anonymous
4

Explanation:

In computer programming, an assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct.

Similar questions