I have two different codes here:
1)
Code:
#include <iostream>
using namespace std;
short Test; //This is the global variable
void Testing(); //This is the function
int main()
{
blahblahblah
}
2)
Code:
#include <iostream>
using namespace std;
void Testing(); //This is the function
short Test; //This is the global variable
int main()
{
blahblahblah
}
Which of the 2 is better? Should the global variable be placed at on top of void Testing or placed below of Testing. I tried it out and both is the same. Is there something which I don't know of? Thanks in advance!