What will be the output of the following C++ code? #include <iostream> ...
View QuestionWhich variable does equals in size with enum variable?
a) int variable b) float variable c) string variable d) float & string variable Answer: a Explanation: The ...
View QuestionWhat will happen when defining the enumerated type?
a) it will not allocate memory b) it will allocate memory c) it will not allocate memory to its ...
View QuestionTo which of these enumerators can be assigned?
a) integer b) negative c) enumerator d) all of the mentioned Answer: d Explanation: Since enumerators evaluate ...
View QuestionIn which type do the enumerators are stored by the compiler?
a) string b) integer c) float d) string & float Answer: b Explanation: In C++, enumerations are ...
View QuestionIdentify the incorrect option.
a) enumerators are constants b) enumerators are user-defined types c) enumerators are same as macros d) enumerator values start from ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
void a = 10, b = 10;
int c;
c = a + b;
cout << c;
return 0;
}
What will be the output of the following C++ code? #include <iostream> ...
View QuestionChoose the incorrect option.
a) void is used when the function does not return a value b) void is also used when ...
View Question
What does the following statement mean?
void a;
What does the following statement mean?void a; a) variable a is of type void b) a ...
View Question______________ have the return type void.
a) all functions b) constructors c) destructors d) none of the mentioned Answer: d Explanation: ...
View Question