Introduction to module
In this module you will be introduced to the fundamental structures used to build a C program. In the previous module (module 812:Program Development C) you discovered the general structure of a C program and identified the various components needed to compile the source code into an executable file. This module describes the essential program elements that are common to all c programs. Future modules will discuss specific concept that are needed by some programs to deal with more complex problems
The concepts presented in this module provide the basic elements needed to construct a working program. In completing this and subsequent modules, you should make use of the knowledge gained in the modules of previous units. ASNS1101 (introduction to computing and numerical processes) provided a general introduction to computer systems and application software.ASCO1102
Introduced the class of computer languages called third generation languages of data and file structures and completed the study of the pascal programming language AS02202
Developed an understanding of the architecture of machines and the compilation process. Finally.ASCO3301 developed some models of program design and construction particularly for larg projects.
It is a strong belief in computing that the best method for learning a new language is practice. Your previous studies have prepared you in terms of programming principles and program construction. In this, and future modules, you should attempt to write as many programs as possible to develop a good understanding of C.A requirement of at least one new program (designed, coded, compiled and debugged) each day should be a reasonable goal. The programs do not need to be complex. You should make sure that each program makes use of only one new concept. Over time you will develop a familiarity with the language constructs that will eventually lead to more complex programs. c is a 3Gl and therefore has many constructs in common with other 3gls such as pascal. You will find that many programs can be converted into C quite easily. It is only amatter of identifying the differences in command syntax. there are times however when thisconversion process is difficult or it produces code which is more complex than the original in these instancet direct conversion is not possible and a redesign of the module is necessary
These notes make use of a number of program examples. Each example is provided on a floppy disk which is part of the unit materials you should load compile and run these programs to discover how they work. You can also use these examples as prototypes for the design of your own programs . in order to conseve paper the programs have been written with a minimum of documentation. You programs would normally be developed with more substantial documentation