© Shirish Chavan 2017

Shirish Chavan, C Recipes, https://doi.org/10.1007/978-1-4842-2967-5_3

3. Functions and Arrays

Shirish Chavan

(1)Sangli, Maharashtra, India

Besides basic types, C consists of derived types. Figure 3-1 shows a diagrammatic representation of basic types and derived types in C. What brick is to wall, basic type is to derived type. A derived type is built up using one or more basic types as building blocks. Both functions and arrays are derived types in C.

A433744_1_En_3_Fig1_HTML.jpg
Figure 3-1. Basic and derived data types in C. Type and data type are synonymous.

In C, the concept of a function can be explained in a number of ways. Here are some examples: ...

Get C Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.