What is the value of var after running the following piece of C code? int var-10; if (var10) var = var + 10; else var = var + 15; else var=var+20; a) 30 b) 15 c) 25 d) 30


What is the value of var after running the following piece of C code?<br>int var-10;<br>if (var<20)<br>var = var + 5;<br>if (var>10)<br>var = var + 10;<br>else<br>var = var + 15;<br>else<br>var=var+20;<br>a) 30<br>b) 15<br>c) 25<br>d) 30<br>

Extracted text: What is the value of var after running the following piece of C code? int var-10; if (var<20) var="var" +="" 5;="" if="" (var="">10) var = var + 10; else var = var + 15; else var=var+20; a) 30 b) 15 c) 25 d) 30

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here