what is Simple variable ?

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.6: Variable Storage Categories
Problem 2E
icon
Related questions
Question

what is Simple variable ?

Expert Solution
Step 1

A simple variable is just basically a variable with only one single value.

Let us declare a variable named  'num' as integer type with value 10.

int num =10; 

It is specific that the num variable contains one and only value 10, so it is a simple variable.

We can understand it better while comparing it with a non-simple variable, for example, a variable which is used within the conditional statement of a loop.

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr