C++

 

– What is the output of the following program?

#include

using namespace std;
class abc {
  public:
     static int x;
     int i;

     abc() {
        i = ++x;
     }
  };
int abc::x;

main() {
  abc m, n, p;
  
  cout< }
Tags: No tags