91.
Which of the following operator(s) can be used with pointers?
i. – only
ii. +, *
iii. +, –
iv. +, -, *
v. /
vi. + only

92.
Which of the following is correct about this pointer in C++?

93.
Which of the following syntax for declaring a variable of struct STRUCT can be used in both C and C++?

94.
What happens if the following program is executed in C and C++?
#include <stdio.h> 
void func()
{
	printf("Hello");
}
void main() 
{ 
	func();
	func(2);
}

95.
Which of the following is correct?

96.
Which of the following is correct in C++?

97.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
class Point
{
    int x, y;
  public:
   Point(int i = 0, int j =0)
   { x = i; y = j;  }
   int getX() const { return x; }
   int getY() {return y;}
};
 
int main()
{
    const Point t;
    cout << t.getX() << " ";
    cout << t.gety();
    return 0;
}

Read More Section(Introduction to C plus plus)

Each Section contains maximum 100 MCQs question on Introduction to C plus plus. To get more questions visit other sections.