Computer Science, asked by anshuman350, 5 months ago

Denny
. What will be the output of the
following C++ code?
#include <iostream>
using namespace std;
class Test
{
static int x;
public:
Test() {x++; }
static int getX() {return x;}
};
int Test::X = 0;
int main()
{
cout << Test::getX() << " ";
Test t[5];
cout << Test::getX();
}​

Answers

Answered by sudhirsingh0779
0

Answer:

Science is a systematic enterprise that builds and organizes knowledge in the form of testable explanations and predictions about the universe. The earliest roots of science can be traced to Ancient Egypt and Mesopotamia in around 3000 to 1200 BCE.

this also.

Answered by ManviL
1

Answer:

Computer Sceince subject this helps

Mark me as brainliest

Similar questions