C Programming. General Information on C Data Types Arithmetic Operators Relational Operators if, if-else, for, while by Kulapan Waranyuwat. General Info on C.
PowerPoint Slideshow about ' C Programming' - kalia-delacruz
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
C is a much more powerful language than AWK. In fact, most of the programs for Unix and the Unix system itself is written in C. C is used to write large software systems, network programming, and it is very fast and efficient. However, it’s probably a more difficult language to learn and master and it takes more time to write C programs than AWK for example due to its complexity.
An array is a type of data structure that is used to hold multiple variables of the same data type, as mentioned last week in the AWK lecture. It is the same in C.
A simple application:Suppose a company wants to keep track of all its employees by assigning the names of each respective employee with an identification number. If one were to do the following, it would be a very tedious task.int employee1 = id1int employee2 = id2and so on….
Arrays are a good solution to this problem. Arrays will create a “file cabinet” and everything in this cabinet will be of the same type. This makes storing data with arrays, in this specific problem, very practical. So you have a file cabinet with only integer variables all holding some integer value.