Compiler: Visual C++ Express Edition 2005
Compiled on Platform: Windows XP Pro SP2
Header file: Standard
Additional library: none/default
Additional project setting: Set project to be compiled as C
Project -> your_project_name Properties -> Configuration Properties -> C/C++ -> Advanced -> Compiled As: Compiled as C Code (/TC)
Other info:
To do: Just working program skeleton
To show: The functions and function calls
Code:
/* Don't forget to add the .h to the header file(s)! */
#include <stdio>
/* Function prototypes */
int a();
int b();
int c();
/* Function defintion */
int a()
{
printf("I'm in a(), calling b() and then c()...\n");
b();
c();
return 0;
}
int b()
{
printf("I'm in b()...\n");
return 0;
}
int c()
{
printf("I'm in c()...\n");
return 0;
}
int main()
{
printf("I'm in main()...\n");
a();
b();
c();
return 0;
}
Output:Code:
I'm in main()...
I'm in a(), calling b() and then c()...
I'm in b()...
I'm in c()...
I'm in b()...
I'm in c()...
Press any key to continue . . .