✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
4. What is the output of the following program?
#include<iostream>
using namespace std;
void f() {
static int i;
++i;
cout<<i<<" ";
}
main() {
f();
f();
f();
}