Need a project done?

C++ Programming Developer

Search This Blog

Static C++


Static C++:

//What will be its output?
#include <iostream>
using namespace std;

f();

void main(){
f();
f();
f();
}

f(){
static a = 0;
cout << a++ << ' ';
}

1 comment:

"Don't let anyone ever make you feel like you don't deserve what you want."