I want to share a variable between all function in my cpp file so I wrote:
static int Graph_Id = 0;
But I have noticed that I could also write:
int Graph_Id = 0;
What is the difference here and which is the correct one?
I want to share a variable between all function in my cpp file so I wrote:
static int Graph_Id = 0;
But I have noticed that I could also write:
int Graph_Id = 0;
What is the difference here and which is the correct one?