If an if statements true path contains the statement double avg = 0.0;, where can the avg
Question:
If an if statement’s true path contains the statement double avg = 0.0;, where can the avg variable be used?
a. In any instruction after the declaration statement in the entire program
b. In any instruction after the declaration statement in the if statement
c. In any instruction after the declaration statement in the if statement’s true path
d. None of the above because you can’t declare a variable in an if statement’s true path
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Question Posted: