Cpp Programming Quiz 221 – A union that has no constructor can be initialized with another union of __________ type.
[A].
different
[B].same
[C].
virtual
[D].
class
Answer: Option B
Explanation:
No answer description available for this question.
virtual
[D].
class
Answer: Option B
Explanation:
No answer description available for this question.
#include
long GetNumber(long int Number)
{
return --Number;
}
float GetNumber(int Number)
{
return ++Number;
}
int main()
{
int x = 20;
int y = 30;
cout<< GetNumber(x) << " ";
cout<< GetNumber(y) ;
return 0;
}
[A].The program will print the output 19 31.
[B].The program will print the output 20 30.
[C].The program will print the output 21 31.
[D].The program will print the output 21 29.
Answer: Option C
Answer: Option C
[B].
Answer: Option B
Explanation:
Both mean two different things. arr gives the address of the first int, whereas the &arr gives the address of array of ints.
The program will print the output Int .
[C].
The program will print the output Char .
[D].
The program will print the output Final .
Answer: Option C
Explanation:
No answer description available for this question.
Answer: Option C
[B].
[C].
[D].
Answer: Option A
Explanation:
No answer description available for this question.