C++ Programming :: Objects and Classes
-
What will be the output of the following program?
#include
-
Which of the following statement is correct about the program given below?
#include
cout }
int Freshergate::x = 0; int main() { Freshergate::SetData(33); Freshergate::Display(); return 0; }
-
Which of the following statement is correct about the program given below?
#include
cout } }; int Freshergate::x = 0;
int main() { Freshergate::SetData(44); Freshergate::Display(); return 0; }
-
What will be the output of the following program?
#include
-
Which of the following statement is correct about the program given below?
#include
-
What will be the output of the following program?
#include
int main()
}Freshergate objgate; objgate.SetValue((char*)"Fresher", (char*)"Gate"); objgate.ShowValue(); return 0; }
-
Which of the following statement is correct about the program given below?
#include<iostream.h> #include<string.h> class IndiaBix { public: void GetData(char *s, int x, int y ) { int i = 0; for (i = x-1; y>0; i++) { cout<< s[i]; y--; } } }; int main() { IndiaBix objBix; objBix.GetData((char*)"Welcome!", 1, 3); return 0; }
-
Which of the following statement is correct about the program given below?
#include
} }; int main()
{ GateData objData(1, 2, 3); objData.Show(); return 0; }
-
Which of the following statement is correct about the program given below?
#include
-
What will be the output of the following program?
#include