ABSTRACT

All the preliminary prerequisites are covered thus far, and now we are ready to plunge into programming. A computer program is comprised of statements given in the sequential order of their processing by the computer. This chapter explains the basics of program statements. The general characters of a computer program statement are enumerated. Then the syntax that needs to be adhered to while writing a program statement is explained, and the common rules that need to be conformed to are explained. Then all the statements, namely declaration statements, assignment statements, input/output statements, Control statements, loops, error handling statements, system calls, inter-process communication, interrupt handling, device handling, starting and ending statements, and documentation statements, are all enumerated and briefly explained. The single statements and compound statements are contrasted. Then the assignment statements are explained in detail with examples. The rules to be adhered to while writing assignment statements are described in detail to make the reader an expert in writing them. Combining assignment statements and initialization is also discussed here. The utility of assignment statements in a computer program are detailed in this chapter.