What is the difference between a data type and a variable?
What will be an ideal response?
A data type is a category of storage containers for program data values. The data type defines the type of data that will be stored and used by the program, data such as whole numbers (int) or character data (char). A variable is an actual storage location in the computer memory where the data is stored.
You might also like to view...
When you create a template, OneNote creates a new template reading My Templates in the Page Templates
Indicate whether the statement is true or false
Answer the following statements true (T) or false (F)
1. Flowcharts and pseudocode can be used to describe an algorithm 2. A C++ while loop tests the controlling condition before the first iteration of the loop. 3. A C++ do while loop tests the controlling condition before the first iteration of the loop. 4. The break statement is used to terminate the execution of a switch statement 5. A do-while loop repeats the loop body zero or more times.