Consider the following C++ program:
#include <iostream>
#define PRIORITY 10
void main() {
int tableInd = 20;
int arrayInd = 30;
cin >> tableInd;
if (tableInd > 50)
arrayInd = PRIORITY;
else
arrayInd = setindex(PRIORITY);
cout << arrayInd;
}
Answer the following questions:
a) At what time is the keyword void bound to its meaning?
Language design Language implementation Compile Link Load Run
b) At what time is the value of PRIORITY bound?
Language design Language implementation Compile Link Load Run
c) At what time is the value of tableInd bound?
Language design Language implementation Compile Link Load Run
d) At what time is the range of int values determined?
Language design Language implementation Compile Link Load Run
e) At what time is the output class cout bound?
Language design Language implementation Compile Link Load Run
Answer:
a) At what time is the keyword void bound to its meaning?
An: Load
The void will not return any value but it is a return type; Void main load source code.
b) At what time is the value of PRIORITY bound?
An: Language design
Define PRIORITY 10 means design a language before implementation.
c) At what time is the value of tableInd bound?
An: Language implementation
The integer value tablelnd started implementing values. i.e tablelnd=20;
d) At what time is the range of int values determined?
An: Compile
Integer values are determined at the time of compilation.
e) At what time is the output class cout bound?
An: Run
cout<< performs on run time and display result;
Get Answers For Free
Most questions answered within 1 hours.