lesson 10 show msg c
[[lesson_10_show_msg_c]] last edit on
Aug 18, 2005
6:07 AM
by rescued_by_c
[user02@FC4 Lesson10]$ cat -n show_msg.c
[user02@FC4 Lesson10]$ ./show_msg
About to call the function
Hello, I've been Rescued by C
Back from the function
[user02@FC4 Lesson10]$
1 #include <stdio.h>
2
3 void show_message(void)
4 {
5 printf("Hello, I've been Rescued by C\n");
6 }
7
8 int main(void)
9 {
10 printf("About to call the function\n");
11 show_message();
12 printf("Back from the function\n");
13
14 return 0;
15 }
[user02@FC4 Lesson10]$ gcc -o show_msg show_msg.c[user02@FC4 Lesson10]$ ./show_msg
About to call the function
Hello, I've been Rescued by C
Back from the function
[user02@FC4 Lesson10]$