Say I wanted to create a header file for my program. Would the variables in the header be defined globally for the file that it is attached to.
don't really understand the parts that I commented out. What does the header_example mean. Is it supposed to be a specific word of anything or its just random words?
Code:
//header.h
//#ifndef HEADER_EXAMPLE
//#define HEADER_EXAMPLE
char array[10] ={"hello world"};
//prog.c
//#endif
#include <stdio.h>
#include "header.c" //#include <header.c>
{
printf("%s", &array);
return 0;
}
Comment