#include <stdio.h>
void array_static(){
	static int array[3]; /* Automatic initialization */
	int i;
	printf("Array of static permanence in memory \n");
	
	for ( i = 0; i < 3; i++ ){
		printf(" %i ", array[i] );
		array[i] ++;
	}
	printf("\n"); 
}

void array_automatic(){
	int array[3] = {0, 0, 0};/* We need to an explicit initialization to 0*/
	int i;
	printf("Array of automatic permanence in memory \n");
	
	for ( i = 0; i < 3; i++ ){
			
		printf(" %i ", array[i] );
		array[i] ++;
	}
	printf("\n");
}


int main(int argc, int* argv){
	printf("It describes different types of array, calling two times each function in which an array is generated\n");
	array_static();
	array_static();
	array_automatic();
	array_automatic();
}
