Which of the following statements are correct about arrays used in C#.NET?
[A].
[B].
[C].
[D].
Answer: Option D
Explanation:
No answer description available for this question.
[B].
[C].
[D].
Answer: Option D
Explanation:
No answer description available for this question.
Answer: Option C
Answer: Option D
[B].
[C].
[D].
Answer: Option B
Explanation:
The statement 1 and 2 does not yield the base address of the array. While the scanf() and printf() yields the base address of the array.
#include
int main()
{
int x = 10;
int &y = x;
x = 25;
y = 50;
cout<< x << " " << --y;
return 0;
}
[A].The program will print the output 25 49.
[B].It will result in a compile time error.
[C].The program will print the output 50 50.
[D].The program will print the output 49 49.
Answer: Option D
Answer: Option D
#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