Computer Science, asked by dayasingh614, 7 months ago

i=5 is called ............... assignment (a) logical (b) relational (c) general (d) none of these​

Answers

Answered by topwriters
1

I=5 is called a general assignment.

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. You can also say that a general assignment statement will copy a value into a variable. Assignments typically allow a variable to hold different values at different times during its life-span and scope.

An assignment statement gives a value to a variable. The general syntax of an assignment statement is

variable = expression ;

Examples:  

x = 5;

gives x the value 5.

x = x + 1;

will give x the value 6.

So, I=5 is called a general assignment.

Option C is the answer.

Answered by nidaeamann
0

Answer:

General

Explanation:

Among the four options given in question statement, the correct option is C.

C language is one of the basic computer languages and is quite commonly used. One of the basic elements in any language is its variables and then assigning values to them as per need of the program.

Assignment can be of various types such as;

i = 5 is general assignment

i = j is relational assignment

Similar questions