C++ Programming :: Functions - C++
-
What will be the output of the following program?
#include
-
What will be the output of the following program?
#include
objGATE.GATEFunction
return 0; }
-
What is correct about the following program?
#include
-
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
-
What will be the output of the following program?
#include
-
Which of the following statement is correct about the program given below?
#include
class String { char txtName[20]; public: GateString(char *txtTemp = NULL) { if(txtTemp != NULL) strcpy(txtName, txtTemp); } void Display(void) { coutint main() { char *txtName = (char*)malloc(10); strcpy(txtName, "Freshergate"); *txtName = 48; GateString objTemp(txtName); coutsizeof(txtName); return 0; } -
Which of the following statement is correct about the program given below?
#include
class Freshergate { int x, y, z; public: Freshergate(int x = 100, int y = 30, int z = 0) { this->x = x; this->y = y; this->z = z; Display(); } void Display() { cout" " " " int main() { int a = 0, b = 1, c = 2; int &x = ++a; int &y = --b; int z = c + b - -c; Freshergate objGate(x, y, z); return 0; } -
Which of the following statement is correct about the program given below?
#include