In: Computer Science
1) A C++ identifier is a name that identify. Click below identifier and type what could an identifier be identifying? ( just explain it in words from C++)
2) Click below each of the following type after Declaration, type the statement that declares a variable capable of storing a value of the specified type.
Declaration:
Declaration:
Declaration:
1) In C++, the identifier can be the name of a variable or function. Since C++ supports object-oriented programming, the identifier can also be the name of a class and it can be the name of any other user defined data types. The identifier can start with an alphabet and it can be a lowercase or uppercase. The identifier can also start with an underscore. Then it can follow any number of letters, underscores and numbers.
2) It can be declared as
//A non-negative integer.
unsigned int a;
a = 562;
cout << a << endl;
//A short integer
short int b;
b = 12;
cout << b << endl;
//A Boolean value
bool c;
c = true;
cout << c << endl;