//global1.cpp
#include <stdio.h>

//C allows globals to be init to value
int i = 0;

//C++ allows globals to be init through functions as well
int init()	{
   int ret=6;
	//some algorithm...
   return (ret);
}
int j = init();

main()	{
   printf("%d,%d\n",i,j);
}
/*output*
0,6
*********/
//end global1.cpp
