F
fb
One quick question about multiple files.
Let's say I had the following:
#include <stdio.h>
void Heading(void);
int main(void)
{
printf("Hello. I'm about to call my Heading() function\n\n");
Heading();
printf("Now I'm back inside \"main\".\n");
return 0;
}
void Heading(void)
{
printf("Hello! You are currently inside the Heading() ");
printf("function.\n");
}
How would I split this up into seperate files? Would I need a header
file (.h) and a seperate (.c) file in addition to the main (.c) file
that has the main() function in it?
What would go where?
Thanks!
fb goes looking for his missing C book...
Let's say I had the following:
#include <stdio.h>
void Heading(void);
int main(void)
{
printf("Hello. I'm about to call my Heading() function\n\n");
Heading();
printf("Now I'm back inside \"main\".\n");
return 0;
}
void Heading(void)
{
printf("Hello! You are currently inside the Heading() ");
printf("function.\n");
}
How would I split this up into seperate files? Would I need a header
file (.h) and a seperate (.c) file in addition to the main (.c) file
that has the main() function in it?
What would go where?
Thanks!
fb goes looking for his missing C book...