O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required