Which of the following statement is correct?
Which of the following statement is correct?
Which of the following statement is correct about the program given below?
#include<iostream.h>
class Bix
{
int x, y;
public:
Bix(int x, int y)
{
this->x = x;
this->y = y;
}
void Display()
{
cout<< x << " " << y;
}
};
int main()
{
int x = int &y = x ;
Bix b(y, x);
return
}Which of the following statement is correct about the program given below?
#include<iostream.h>
int main()
{
int x =y = int *ptr = &x;
int &ref = y;
*ptr++;
ref++;
cout<< x << " " << y;
return
}Which of the following statement is correct about the program given below?
#include<iostream.h>
int i, j;
class IndiaBix
{
public:
IndiaBix(int x =int y = {
i = x;
j = x;
Display();
}
void Display()
{
cout<< j <<" ";
}
};
int main()
{
IndiaBix objBix(20);
int &s = i;
int &z = j;
i++;
cout<< s-- << " " << ++z;
return
}Which of the following statements is correct?
Which of the following statement is correct about the program given below?
#include<iostream.h>
enum xyz
{
a, b, c
};
int main()
{
int x = a, y = b, z = c;
int &p = x, &q = y, &r = z;
p = ++x;
q = ++y;
r = ++c;
cout<< p << q << r;
return}Which of the following statements is correct?
Which of the following statement is correct about the program given below?
#include<iostream.h>
int main()
{
int x =
int y& = x;
x++;
cout << x << " " << --y;
return}Which of the following statement is correct about the program given below?
#include<iostream.h>
int main()
{
int m =n = int &x = m;
int &y = n;
m = x++;
x = m++;
n = y++;
y = n++;
cout<< m << " " << n;
return
}Which of the following statement is correct about the program given below?
#include<iostream.h>
class IndiaBix
{
int x, y;
public:
void SetValue(int &xx, int &yy)
{
x = xx++;
y = yy;
cout<< xx << " " << yy;
}
};
int main()
{
int x = int &y = x;
IndiaBix objBix;
objBix.SetValue(x , y);
return
}Which of the following statement is correct about the program given below?
#include<iostream.h>
int main()
{
int x = int &y = x; y =
while(x <= {
cout<< y++ << " ";
x++;
}
cout<< x;
return
}Which of the following statement is correct about the program given below?
#include<iostream.h>
int x, y;
class BixTest
{
public:
BixTest(int xx =int yy = {
x = xx;
y = yy;
Display();
}
void Display()
{
cout<< x << " " << y << " ";
}
};
int main()
{
BixTest objBT(20);
int &rx = x;
int &ry = y;
ry = x;
rx = y;
cout<< rx--;
return
}Which of the following statement is correct about the program given below?
#include<iostream.h>
int main()
{
int arr[] = {2 ,5};
int &zarr = arr;
for(int i =i <=i++)
{
arr[i] += arr[i];
}
for(i =i <=i++)
cout<< zarr[i];
return
}A reference is declared using the _____ symbol.
Functions can be declared to return a reference type. There are reasons to make such a declaration/Which of the following reasons are correct?
Which of the following statement is correct about the program given below?
#include<iostream.h>
int main()
{
int x =
int &y = x;
x++;
cout << x << " " << --y;
return}Which of the following statement is correct about the program given below?
#include<iostream.h>
class IndiaBix
{
int x, y;
public:
void SetValue(int &a, int &b)
{
a = x = a;
y = b;
Display();
}
void Display()
{
cout<< x << " " << y;
}
};
int main()
{
int x = IndiaBix objBix;
objBix.SetValue(x, x);
return}Which of the following statement is correct about the program given below?
#include<iostream.h>
int main()
{
int m =n = int &x = m++;
int &y = n++;
m = x++;
x = m++;
n = y++;
y = n++;
cout<< m << " " << n;
return
}Which of the following statement is correct about the program given below?
#include<iostream.h>
class IndiaBix
{
int a, b, c;
public:
void SetValue(int x, int y ,int z)
{
a = x;
b = y;
c = z;
}
void Display()
{
cout<< a << " " << b << " " << c;
}
};
int main()
{
IndiaBix objBix;
int x = int &y = x;
y = objBix.SetValue(x, ++y, x + y);
objBix.Display();
return
}