December 2002
Intermediate to advanced
1616 pages
39h 57m
English
| 1. | What function does every C program have? Why should you split large programs into several functions? |
| 2. | What command could you use to compile prog.c and func.c into an executable named cprog? |
| 3. | Show two ways to instruct the C preprocessor to include the header file /usr/include/math.h in your C program. Assuming that the declar.h header file is located in the subdirectory named headers of your home directory, describe two ways to instruct the C preprocessor to include this header file in your C program. |
| 4. | Both C functions getchar and putchar appear in the standard C library libc.so. Show that getchar and putchar are also macros on your system. Can you think of more than one way to show this? |
| 5. | How are the names of system libraries abbreviated ... |
Read now
Unlock full access