Which of the following statements is correct?
Which of the following statement is correct about the program given below?
#include<iostream.h> struct Bix { short n; }; int main() { Bix b; Bix& rb = b; b.n = cout << b.n << " " << rb.n << " "; rb.n = cout << b.n << " " << rb.n; return }
Which of the following statement is correct?
Which of the following statement is correct about the references?
#include<iostream.h> int main() { int x = int &y = x; x++; cout<< x << " " << y++; return }
#include<iostream.h> class IndiaBix { int x, y; public: void SetValue(int &xx, int &yy) { x = xx ++; y = yy; Display(); } void Display() { cout<< x << " " << y; } }; int main() { int x = int &y = x; IndiaBix objBix; objBix.SetValue(x , y); return }
What will be the output of the following program?
#include<iostream.h> class BixTest { public: BixTest(int &x, int &y) { x++; y++; } }; int main() { int a =b = BixTest objBT(a, b); cout<< a << " " << b; return }
What will be the output of the program given below?
#include<iostream.h> class BixBase { int x; public: BixBase(int xx = { x = xx; } void Display() { cout<< x ; } }; class BixDerived : public BixBase { int y; public: BixDerived(int yy = { y = yy; } void Display() { cout<< y ; } }; int main() { BixBase objBase(10); BixBase &objRef = objBase; BixDerived objDev(20); objRef = objDev; objDev.Display(); return }
#include<iostream.h> class IndiaBix { int x, y; public: IndiaBix(int xx =int yy = { x = xx; y = yy; } void Display() { cout<< x << " " << y; } IndiaBix operator +(IndiaBix z) { IndiaBix objTemp; objTemp.x = x + z.x; objTemp.y = y + z.y; return objTemp; } }; int main() { IndiaBix objBix1(80); IndiaBix objBix2(20); IndiaBix objSum; IndiaBix &objRef = objSum; objRef = objBix1 + objBix objRef.Display(); return }
#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 = z; p = ++q; q = ++p; z = ++q + p++; cout<< p << " " << q << " " << z; return }
#include<iostream.h> int main() { int x = int &y = x; x = y = cout<< x << " " << --y; return }
#include<iostream.h> class IndiaBix { int x, y; public: IndiaBix(int &xx, int &yy) { x = xx; y = yy; Display(); } void Display() { cout<< x << " " << y; } }; int main() { int x1 = int &p = x int y1 = int &q = y IndiaBix objBix(p, q); return }
Reference is like a _____.
#include<iostream.h> int BixFunction(int m) { m *= m; return((10)*(m /= m)); } int main() { int c =*d = &c, e; int &z = e; e = BixFunction(c-- % 3 ? ++*d :(*d *= *d)); z = z + e / cout<< c << " " << e; return}
#include<iostream.h> enum bix { a=b, c }; int main() { int x = c; int &y = x; int &z = x; y = b; cout<< z--; return }
Please disable the adBlock and continue. Thank you.