Exercises : Answer the following Question

Submitted by tushar pramanick on Mon, 02/25/2013 - 11:19

Workshop
To help solidify your understanding of this hour's lesson, you are encouraged to answer the quiz questions provided in the Workshop before you move to the next lesson. The answers and hints to the questions are given in Appendix E, "Answers to Quiz Questions and Exercises."

 

Quiz

  • What are the lowest-level and highest-level languages mentioned in this book?
  • Can a computer understand a program written in C?What do you need to translate a program written in C into the machine-understandable code (that is, binary code)?
  • If needed, can a C program be reused in another C program?
  • Why do we need the ANSI standard for the C language?

 

 

 

Summary

In this Chapter you've learned the following:

  • C is a general-purpose programming language.
  • C is a high-level language that has the advantages of readability, maintainability, and portability.
  •  C is a very efficient language that allows you to get control of computer hardware and peripherals.
  •  C is a small language that you can learn easily in a relatively short time.
  •  Programs written in C can be reused.
  • Programs written in C must be compiled and translated into machine-readable code before the computer can execute them.
  • C provides many programming languages, such as Perl, C++, and Java, with basic concepts and useful features.
  • The ANSI standard for C is the standard supported by all C compiler vendors to guarantee the portability of C.
  • You can use any C compilers that support the ANSI standard and compile all C programs in this book.

Related Items

The #define and #undef Directives

The #define and #undef Directives

The #define directive is the most common preprocessor directive, which tells the preprocessor to replace every occurrence of a particular character string (that is, a macro name) with a specified value (that is, a macro body).

The C Preprocessor Versus the Compiler

The C Preprocessor Versus the Compiler

One important thing you need to remember is that the C preprocessor is not part of the C compiler.

What Is the C Preprocessor?

If there is a constant appearing in several places in your program, it's a good idea to associate a symbolic name to the constant, and then use the symbolic name to replace the constant throughout the program. There are two advantages to doing so. First, your program will be more readable.

Exercises : Answer the following Question

To help solidify your understanding of this hour's lesson, you are encouraged to answer the quiz questions and finish the exercises provided in the Workshop before you move to the next lesson.

Question and Answer

    Q Why is random access to a disk file necessary?