Chapter 1 OVERVIEW of C Importance of C: C is a very important language because of its many useful features and many desirable qualities. - Robust language whose rich set of built in functions and operators can be used to write any complex program. - Allows software developers to develop software without worrying about the hardware platforms where they will be implemented. - Compiler combines the capabilities of an assembly language with the features of a higher level language - Well suited for both system software and business packages - Efficient and fast. - Highly portable.
Free preview text
The first 5 pages, shown as text so search engines and readers can find this document.
Page 1
Chapter 1
OVERVIEW of C
Importance of C:
C is a very important language because of its many useful features and many desirable qualities.
- Robust language whose rich set of built in functions and operators can be used to write
any complex program.
- Allows software developers to develop software without worrying about the hardware
platforms where they will be implemented.
- Compiler combines the capabilities of an assembly language with the features of a higher
level language
- Well suited for both system software and business packages
- Efficient and fast.
- Highly portable.
- Well suited for structured programming.
- Machine independent language.
- Has the ability to extend itself.
Basic structure of a C program
Documentation Section
Link Section
Definition Section
Global declaration Section
Main function Section
{
Local declaration Section
Executable Section
}
User Defined functions
/* Finding area and circumference of a circle */
#include<stdio.h>
#define PI 3.1428
float circum;
Main()
{
float area,r;
r = 4.35;
area= PI * r * r
cir(r);
printf(“Area of a circle = %d”,area);
}
cir( float r)
{
circum= 2* PI*r;
printf(“ Circumference = %f”,circum);
}
• Documentation section: -
- Consists of a set of comment lines giving the name of the program, the author and
other details, which the programmer would like to use later.
• Link section:
- Provides instructions to the compiler to link functions from the system library
- Eg. using #include directive.
• Definition section:
- Defines all symbolic constants such using the #define directive.
• Global declaration section:
- Some variables are to be used in more than one function called ‘global variables’
- Declared in the global declaration section that is outside of all the functions.
- Also declares all the user-defined functions.
Page 2
• main () function section:
- Every C program must have one main function section.
- Declaration part and executable part
1. Declaration part: declares all the variables used in the executable part.
2. Executable part: There is at least one statement in the executable part.
- These two parts must appear between the opening and closing braces.
- Program execution begins at the opening brace and ends at the closing brace.
- Closing brace of the main function is the logical end of the program.
- All statements in the declaration and executable part end with a semicolon.
• Subprogram section:
- Contains all the user-defined functions that are called in the main () function.
- Generally placed immediately after the main () function,
- They may appear in any order
All section, except the main () function section may be absent when they are not required.
Note :
- C makes distinction between uppercase and lowercase letters
- Everything in C is written in lowercase letters
- \n → newline character, instructs to go to next line on the screen
CONSTANTS, VARIABLES AND DATA TYPES
Character Set:
- The various categories of characters are called the character set.
- Grouped into the following categories.’
1. Letters:
- Uppercase: A..................Z
- Lowercase a...................z
2. Digits:
- All decimal digits. 0................9
3. Special characters:
- , - comma , . period, ; semicolon, : colon, etc
4. White spaces:
- blank spaces, horizontal tab, new line etc.
C tokens:
• Are the basic buildings blocks in C language which are constructed together to write a C
program.
• Each and every smallest individual unit in a C program is known as C tokens.
• Tokens are of six types. They are,
1. Keywords (eg: int, while),
2. Identifiers (eg: main, total),
3. Constants (eg: 10, 20),
4. Strings (eg: “total”, “hello”),
5. Special symbols (eg: (), {}),
6. Operators (eg: +, /,-,*)
Page 3
Keywords:
- Have fixed meanings and these meanings cannot be changed.
- There are 32 keywords. Some compiler may use additional keywords that must be
identified from the C manual.
- Serve as basic building block for a program statement
- Must be written in lowercase letters
Identifiers:
- The names of variables, functions and arrays are identifiers.
- These are user-defined names and consist of a sequence of letters and digits. Such
as, my_num, _ton etc.
Rules for identifier:
1. Must consist of only letters, digits and underscores.
2. First character must be an alphabet or underscore.
3. Only first 31 characters are significant.
4. Cannot use a keyword.
5. Must not contain white spaces.
Constants:
- Constants are of fixed values
- Do not change during the execution of a program.
- There are various types of constants.
Integer constants:
- An integer constant refers to a sequence of digits. T
- here are three types of integer constants namely : decimal integer, octal integer
and hexadecimal integer.
Decimal integer :
- consists of a set of digits from 0 to 9, preceded by an optional + or – sign.
- Examples, 123 -321 0 64932
Octal integer :
- consists of a set of digits from 0 to 7, with a leading 0.
- Examples, 037 0 0437 0551
Hexadecimal integers:
- are a sequence of digits preceded by 0x or 0X.
- They may also includes letters from A to F or from a to f.
- The letters represents the numbers from 10 to 15.
- Examples, 0X2 0x9F 0Xbcd 0x
Page 4
Real constants:
- Real constants are used to represent quantities that are very continuously, such as
distances, temperature etc.
- These quantities are represented by numbers containing fractional parts.
- Examples, 0.00832 -0.75 33.337
Single character constants:
- A single character constants contains a single character enclosed within a pair of
single quote
- Has an equivalent integer value
- Example, ‘5’ ‘X’ ‘;’
String constants:
- Consists of a sequence of characters enclosed in double quotes.
- May consist of any combination of digits, letters, escaped sequences and spaces.
- Note that a character constant ۥAۥ and the corresponding single character string
constant "A" are not equivalent.
- Do not have an equivalent integer value
- Valid String Constants: - "W" , "100","24, Kaja Street"
- Invalid String Constants: - "W the closing double quotes missing
Raja" the beginning double quotes missing
Backslash character constants:
- C supports some special backslash character constants that are used in output
functions.
- For example: Constants Meaning
‘\a’ audible alert (bell)
‘\n’ new line
‘\?’ question mark
Variables
- a variable is a container (storage area) to hold data.
- each variable should be given a unique name (identifier).
- Variable names are just the symbolic representation of a memory location.
- Value of a variable can be changed, hence the name 'variable'
- For example: int playerScore = 95;
Rules for naming a variable in C
1. A variable name can have letters, digits and underscore only.
2. The first letter of a variable should be either a letter or an underscore.
3. There is no rule on how long a variable can be. However, only the first 31
characters of a variable are checked by the compiler.
4. Both uppercase and lowercase letters can be used.
5. Spaces should not be used in a variable name.
6. Keywords like int, float, struct, if, while cannot be used as variable names.
Page 5
Data Types:
- C is rich in data types
- Supports 3 classes of dats types
o Primary data types
o Derived data types
o User Defined data types
Primary Data Types:
- C supports 5 data types : integer, float ,double, character and void
Integer Data Types:
- Integers are whole numbers with a range of values
- Values are machine dependent.
- Occupies 2 bytes memory space
- Value range limited to -32768 to +32767 (that is, -2 15 to +2 15-1).
- A signed integer use one bit for storing sign and rest 15 bits for number.
- C has three classes of integer storage namely short int, int and long int to control the
range of numbers and storage space.
- Qualifiers:
o All three data types have signed and unsigned forms.
o A short int requires half the amount of storage than normal integer.
o Signed integer, unsigned integers are always positive and use all the bits for the
magnitude of the number
o Range of an unsigned integer will be from 0 to 65535.
o The long integers occupies 4 bytes of storage space to store huge values.
Syntax:
int <variable name>;
int num1;
short int num2;
long int num3;
Example: 5, 6, 100, 2500.
Floating Point Data Types:
- The float data type is used to store fractional numbers (real numbers) with 6 digits of
precision.
- Denoted by the keyword float.
- Double is same as float but with longer precision of 14 digits. Takes 8 bytes for storage.
- Qualifiers:
o long double which occupies 10 bytes of memory space with higher precision
Syntax:
float <variable name>;
float num1;
double num2;
long double num3;
Example: 9.125, 3.1254.
Doxxly editorial guide
Chapter 1 OVERVIEW of C Importance of C:: summary, contents and background
This guide helps you understand the scope of Chapter 1 OVERVIEW of C Importance of C: before or alongside reading the original document. It is based on the catalogue record, credited creator, source, classification and topics shown on this page. It does not replace the original work and does not invent claims about passages that Doxxly cannot verify.
Summary and overview
Chapter 1 OVERVIEW of C Importance of C: is a 42-page documentcredited to Bram Y. Whitlock. Chapter 1 OVERVIEW of C Importance of C: C is a very important language because of its many useful features and many desirable qualities. - Robust language whose rich set of built in functions and operators can be used to write any complex program. - Allows software developers to develop software without worrying about the hardware platforms where they will be implemented. - Compiler combines the capabilities of an assembly language with the features of a higher level language - Well suited for both system software and business packages - Efficient and fast. - Highly portable.
The item can be approached in several ways. A reader looking for a quick orientation can begin with the free five-page preview, inspect the page structure and use the metadata to judge relevance. Someone undertaking deeper research can work through the complete file, search its indexed text, record useful page references and compare its treatment of its central subject with the related resources linked below.
Rather than reducing the work to a single claim, this page treats it as a source that should be read in context. The title, creator, publication source, licence and format all help explain what kind of evidence it may offer. Readers should distinguish the original author's statements from Doxxly's catalogue description, and should cite the original edition when using the material in academic, professional or published work.
Key topics and reader takeaways
The catalogue connects this document with its central subject. These terms offer practical entry points rather than a substitute for close reading. Start by identifying the definitions, examples, arguments, tables or visual explanations attached to each topic. Then note where the creator draws connections, makes distinctions or moves from background material to a conclusion, recommendation, calculation or narrative development.
A useful reading method is to separate description from interpretation. First record what the item actually presents: names, headings, figures, formulas, quotations or stated propositions. Next consider why those details matter within the whole work. Finally compare them with another source from the same subject area. This process helps turn a long digital file into evidence that can be evaluated rather than merely skimmed.
Table of contents and reading guide
The following is an editorial content guide based on the verified catalogue topics. It is not represented as the original author's formal table of contents. Use it to organise notes while moving through the 42 pages in the player.
Part 1
background
Use this section of the reading guide to identify how background appears in Chapter 1 OVERVIEW of C Importance of C:, note important terms, and connect the subject to the wider purpose of the work.
Part 2
key ideas
Use this section of the reading guide to identify how key ideas appears in Chapter 1 OVERVIEW of C Importance of C:, note important terms, and connect the subject to the wider purpose of the work.
Part 3
practical context
Use this section of the reading guide to identify how practical context appears in Chapter 1 OVERVIEW of C Importance of C:, note important terms, and connect the subject to the wider purpose of the work.
When a heading in the original differs from this guide, follow the original heading in your citation. Page numbers can also vary between editions. Doxxly's direct page field is useful for navigation, but formal references should include the title, creator, source and edition details available in the file itself.
About Bram Y. Whitlock
Doxxly credits Bram Y. Whitlock as the author or creator of Chapter 1 OVERVIEW of C Importance of C:. This page does not add an unverified biography, job title or institutional affiliation. The attribution is preserved so readers can distinguish the creator from the hosting library and follow the original record when an external author link is available.
Author context matters because a work reflects a particular purpose, audience and point of view. Before relying on the material, consider what the creator set out to explain, when the source was produced and whether later research or revised guidance should also be consulted. For literature and philosophy, compare translations and editions; for technical material, check whether a newer version has superseded the one shown here.
About the source organisation
The recorded source for this item is mcehassan.ac.in. Doxxly provides access and discovery tools but does not claim to be the original publisher unless explicitly stated. Source links, creator attribution and the recorded Publicly available file collected for editorial review licence are displayed to help readers assess provenance and permitted use.
Provenance is especially important for reports, standards, presentations and working spreadsheets. Check the original source for amendments, supporting files and current policy. A trustworthy research workflow keeps the source URL with any notes or downloaded copy, verifies important figures against the original, and avoids treating an archived document as automatically current.
Begin with the title and opening pages, then use the guide above to decide whether to read sequentially or move to a particular topic. The Doxxly player provides previous and next navigation, a direct page field, zoom steps, fit-to-width and fit-to-page modes, rotation and fullscreen. These controls are useful when a page contains small type, a wide table, an image, a scanned layout or a dense sequence of notes.
The first five pages are open to every visitor. A plan unlocks the complete item and full-document search. Search is best used for distinctive names, technical terms or short phrases; broad words can produce too many possible contexts. When you find a useful passage, read the surrounding pages so that a sentence, chart or formula is not separated from its explanation.
If downloading is enabled, members can obtain the original PDF file. Keep the original format when formulas, slide sequencing, pagination or layout carries meaning. Respect the Publicly available file collected for editorial review terms displayed on this page, and use the rights-report link if you believe the attribution or availability needs review.
Research questions to consider
As you read Chapter 1 OVERVIEW of C Importance of C:, ask which audience the creator addresses, what problem or idea organises the work, what evidence is presented, and which assumptions remain unstated. Note whether important terms are defined consistently and whether examples represent a broader pattern or a narrow case. For quantitative material, record units, time periods, formulas and data sources. For interpretive material, separate the creator's language from your own summary.
A second set of questions concerns relevance today. Which parts remain durable, which depend on their historical or institutional setting, and what would need confirmation from a newer source? Following the tags and the related collection can reveal useful comparisons. Agreement between sources can strengthen confidence, while disagreement can point to changing definitions, methods, evidence or priorities.
Finally, decide what you need from the item: background knowledge, a quotation, a worked example, a model, a visual explanation or a starting bibliography. That purpose should guide the depth of reading and the notes you keep. Doxxly helps locate and navigate the source; careful interpretation remains the reader's responsibility.
Frequently asked questions about Chapter 1 OVERVIEW of C Importance of C:
Practical answers about reading, downloading and understanding this document on Doxxly.