C++ Programming :: References
-
Which of the following statement is correct about the program given below?
#include 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; coutreturn 0; } -
Which of the following statement is correct about the program given below?
#include int main() { int arr[] = {1, 2 ,3, 4, 5}; int &zarr = arr; for(int i = 0; i 4; i++) { arr[i] += arr[i]; } for(i = 0; i 4; i++) coutreturn 0; } -
Which of the following statement is correct about the program given below?
#include struct Gate { short n; }; int main() { Gate b; Gate& rb = b; b.n = 5; cout " " " "; rb.n = 8; cout " " return 0; } -
What will be the output of the following program?
#include enum xyz { a, b, c }; int main() { int x = a, y = b, z = c; int &p = x, &q = y, &r = z; p = z; p = ++q; q = ++p; z = ++q + p++; cout" " " " return 0; } -
Which of the following statement is correct about the program given below?
#include int GateFunction(int m) { m *= m; return((10)*(m /= m)); } int main() { int c = 9, *d = &c, e; int &z = e; e = BixFunction(c-- % 3 ? ++*d :(*d *= *d)); z = z + e / 10; cout" " return 0; } -
Which of the following statement is correct about the program given below?
#include class Gate { int x, y; public: Gate(int x, int y) { this->x = x; this->y = y; } void Display() { cout" " int main() { int x = 50; int &y = x ; Bix b(y, x); return 0; } -
Which of the following statement is correct about the program given below?
#include classFreshergate { int x, y; public: void SetValue(int &xx, int &yy) { x = xx++; y = yy; cout" " int main() { int x = 10; int &y = x; IndiaBix objBix; objBix.SetValue(x , y); return 0; } -
Which of the following statement is correct about the program given below?
#include
class IndiaBix
{
int x, y;
public:
void SetValue(int &a, int &b)
{
a = 100;
x = a;
y = b;
Display();
}
void Display()
{
cout" " } };
int main(){
int x = 10;
IndiaBix objBix;
objBix.SetValue(x, x);return 0;} -
Which of the following statement is correct about the program given below?
#include class freshegate { int x, y; public: void SetValue(int &xx, int &yy) { x = xx ++; y = yy; Display(); } void Display() { cout" " int main() { int x = 10; int &y = x; Freshergate objBix; objgate.SetValue(x , y); return 0; } -
Which of the following statement is correct about the program given below?
#include class FresherGate { int x, y; public: FresherGate(int &xx, int &yy) { x = xx; y = yy; Display(); } void Display() { cout" " int main() { int x1 = 10; int &p = x1; int y1 = 20; int &q = y1; FresherGate objBix(p, q); return 0; }

Whatsapp
Facebook