Video solution will be uploaded soon.
30.What is the output of the following program ?#include <iostream>using namespace std;class Demo public: static int count; Demo() count++; ;int Demo::count = 0;int main() Demo var1; Demo var2[5]; cout << var1.count; return 0; | Watch the step-by-step video solution for this NIMCET PYQ.