Cpp Programming Quiz 29 – Which of the following statement is correct?
[B].A reference is not a constant pointer.[C].An array of references is acceptable.
[D].It is possible to create a reference to a reference.
Answer: Option A
Answer: Option A
Answer: Option D
The program will print the output Bix.
[C].
The program will print the output IndiaBix.
[D].
The program will report compile time error.
Answer: Option C
Explanation:
No answer description available for this question.
Answer: Option B
#include
class IndiaBix
{
int x;
float y;
public:
void Function()
{
x = 4;
y = 2.50; delete this;
}
void Display()
{
cout<< x << " " << y;
}
};
int main()
{
IndiaBix *pBix = new IndiaBix();
pBix->Function();
pBix->Function();
pBix->Display();
return 0;
}
[A].The program will print the output 4 2.5.
[B].The program will print the output 4.
[C].The program will report runtime error.
[D].The program will report compile time error.
Answer: Option C
The program will print the output Garbage-value.
[C].
The program will report compile time error.
[D].
The program will report runtime error.
Answer: Option A
Explanation:
No answer description available for this question.