Computer Science, asked by pooch756, 11 months ago

What will be the value of variable r? var a = 4; var b = 7; var c = ""NCERT""; r = a + b + c;

Answers

Answered by shilpa85475
0

Value of variable r will be: 11NCERT

Explanation:

There are two numerical values assigned to a and b as 4 and 7 respectively. Variable c has been assigned a name NCERT. When addition will happen, it would add the value of a, b and c. The sum of a and b is 11 (4+7). Variable c is ‘NCERT’. 11NCERT will be stored in the variable r because r is defined as the sum of all the three variables a, b and c.

So, the output will be 11NCERT.

Similar questions