Computer Science, asked by anitawadhwanip5dx74, 10 months ago

what is the value stored in following lines of code?
int x,y,z;
x=0;
y=1;
x=y=z=8;

Answers

Answered by pallavi89
8

Answer:

the value stored in following

x, y ,z is

8

Answered by AskewTronics
7

The value stored from the above lines of code is 8 for the variable X, Y and Z.

Explanation:

In any programming language when a variable is assigned some value then it means that it will be stored on the memory. for example, if any variable will assign a value 4 then it means that 4 is stored on memory for a variable. In the above question code--

  1. Firstly X, Y, and Z three variables are created of integer type.
  2. Then variable X will initialize with 0 value.
  3. Then variable Y will initialize with 1 value.
  4. Then the value 8 will store on the variable X, Y, Z after executing the "x=y=z=8;" statement because it assigns the 8 value to an X, Y and Z variable.

From the last statement, The variable x,y, and z will assign the value 8. it means that 8 will store on memory for x,y and z variable. This is an answer to the above question.

Learn More:

  • what is the output of the following lines of code.--https://brainly.in/question/11617423
  • what will be stored--https://brainly.in/question/11302997
Similar questions