Page 1 of 78Free preview · 1–5

About this document

A 78-page collection of two C programming lectures by Wes Armour. The introductory lecture covers program structure, standard libraries, data types, variables and constants, expressions, operators, functions, arrays, control flow, and basic input and output. The second lecture, “A deeper dive into C programming,” explores multidimensional arrays, pointers, characters and strings, variable scope, advanced program control, file handling, and dynamic memory allocation. Code examples develop circle-area calculations and illustrate memory and data handling.

Free preview text

The first 5 pages, shown as text so search engines and readers can find this document.

Page 1

www.oerc.ox.ac.uk Introduction to the C programming language Wes Armour Oxford e-Research Centre, Department of Engineering Science

Page 2

Learning outcomes In this lecture you will learn about: • High level computer languages. • The basic components of a C computer program. • How data is stored on a computer. • The difference between statements and expressions. • What operators and functions are. • How to control basic input and output. • Finally how to write a basic C program.

Page 3

A brief introduction The C programming language was devised by Dennis Ritchie at Bell labs in 1972 (yes, it’s predecessor was B!). C is a high-level programming language, meaning that it is possible to express several pages of machine code in just a few lines of C code. Other examples of high-level languages are BASIC, C++, Fortran and Pascal. They are so called because they are closer to human language than machine languages.

Page 4

A brief introduction Such high-level languages allow a programmer to write programs that are independent of particular types of computer. This is called portability. Portability can be aided by using an agreed standard when writing your program (such as C99). A compiler (such as gcc or icc) is used to convert your high-level language program into machine code that can be executed on a computer. int square(int num) { return num * num; } push rbp #2.21 mov rbp, rsp #2.21 sub rsp, 16 #2.21 mov DWORD PTR [-16+rbp], edi #2.21 mov eax, DWORD PTR [-16+rbp] #3.18 imul eax, DWORD PTR [-16+rbp] #3.18 leave #3.18 ret #3.18 01110000011010001010100100100101001 00011111111111101010111100111001010 10101010011111111111101010100101010 10101010101010101001010101010100101 https://godbolt.org/ HLL Assembly Code Machine Code

Page 5

The components of a C program All C programs have some common elements. • The #include directive tells the compiler to include other files stored on your HDD into your C program. These files will include information that does not change between programs that your program can use. On the right we include the standard input and output library. • The main() function is the only component that has to be included in every C program. It is followed by a pair of braces: { } • The return() statement returns values from a function. Within the main() function return()can be used to tell the operating system (in our case Linux) whether our code completed successfully. #include <stdio.h> int main() { return(0); }

Tags

Doxxly editorial guide

Introduction to the C programming language: summary, contents and background

This guide helps you understand the scope of Introduction to the C programming language 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

Introduction to the C programming language is a 78-page documentcredited to Nadia J. Bellweather. A 78-page collection of two C programming lectures by Wes Armour. The introductory lecture covers program structure, standard libraries, data types, variables and constants, expressions, operators, functions, arrays, control flow, and basic input and output. The second lecture, “A deeper dive into C programming,” explores multidimensional arrays, pointers, characters and strings, variable scope, advanced program control, file handling, and dynamic memory allocation. Code examples develop circle-area calculations and illustrate memory and data handling. It appears in the Education & Learning collection, which groups it with other material that readers may use for comparison and further study.

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 C programming, Lecture slides, Programming fundamentals, Arrays, Pointers, Strings, Control flow, File handling, Dynamic memory allocation 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 C programming, Lecture slides, Programming fundamentals, Arrays, Pointers, Strings, Control flow, File handling, Dynamic memory allocation. 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 78 pages in the player.

  1. Part 1

    C programming

    Use this section of the reading guide to identify how C programming appears in Introduction to the C programming language, note important terms, and connect the subject to the wider purpose of the work.

  2. Part 2

    Lecture slides

    Use this section of the reading guide to identify how Lecture slides appears in Introduction to the C programming language, note important terms, and connect the subject to the wider purpose of the work.

  3. Part 3

    Programming fundamentals

    Use this section of the reading guide to identify how Programming fundamentals appears in Introduction to the C programming language, note important terms, and connect the subject to the wider purpose of the work.

  4. Part 4

    Arrays

    Use this section of the reading guide to identify how Arrays appears in Introduction to the C programming language, note important terms, and connect the subject to the wider purpose of the work.

  5. Part 5

    Pointers

    Use this section of the reading guide to identify how Pointers appears in Introduction to the C programming language, note important terms, and connect the subject to the wider purpose of the work.

  6. Part 6

    Strings

    Use this section of the reading guide to identify how Strings appears in Introduction to the C programming language, note important terms, and connect the subject to the wider purpose of the work.

  7. Part 7

    Control flow

    Use this section of the reading guide to identify how Control flow appears in Introduction to the C programming language, note important terms, and connect the subject to the wider purpose of the work.

  8. Part 8

    File handling

    Use this section of the reading guide to identify how File handling appears in Introduction to the C programming language, 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 Nadia J. Bellweather

Doxxly credits Nadia J. Bellweather as the author or creator of Introduction to the C programming language. 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 people.maths.ox.ac.uk. 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.

Visit people.maths.ox.ac.uk

How to read and use this document

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 Introduction to the C programming language, 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 Education & Learning 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.

Explore more Education & Learning resources

Frequently asked questions about Introduction to the C programming language

Practical answers about reading, downloading and understanding this document on Doxxly.

More in Education & Learning