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
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
1
Answer:
Computer Sceince subject this helps
Mark me as brainliest
Similar questions
Math,
4 months ago
Biology,
4 months ago
Physics,
4 months ago
English,
8 months ago
Business Studies,
1 year ago