100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CS1025 19 -- The C Programming Language Western University $20.68   Add to cart

Exam (elaborations)

CS1025 19 -- The C Programming Language Western University

 2 views  0 purchase
  • Course
  • Institution

CS1025 19 -- The C Programming Language Western University

Preview 4 out of 34  pages

  • August 30, 2023
  • 34
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
The C Programming Language




CS 1025 Computer Science Fundamentals I

Stephen M. Watt
University of Western Ontario

,The C Programming Language

• A high-level language for writing low-level programs
• Allows machine-independent systems programming

• Operators correspond to popular machine instructions
• Easy to provide efficient compilers

,A Little Bit of History
• 1969-1972: Developed at AT&T Bell Labs by Dennis
Ritchie
– Predecessor B, used word-based addressing.
– C used with development of Unix OS

• 1978: “The C Programming Language” book
by Kernighan and Ritchie

• 1989: ANSI/ISO Standard C89
– Function prototypes, void, enumerations, ...

• 1999: ANSI/ISO Standard C99
– Inline functions, complex numbers, variable length arrays, ...

• 2011: ANSI/ISO Standard C11
– Multithreading, unicode, safety, optionalize some of C99, …

, Comparison to Java
• No objects
• Structs, unions and enumerations instead.

• The three most important things in C: (1) pointers, (2) pointers, (3)
pointers.
• Distinction between structure and pointer to structure.
• Pointer arithmetic. Array/pointer equivalence.
• Strings are arrays of small characters, null terminated.


• C pre-processor
• Setjmp/longjmp functions instead of try/throw.
• register, typedef, volatile, const
• Sizes of integers. Signed and unsigned arithmetic.

• Different IO

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Ethanhope. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $20.68. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75391 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$20.68
  • (0)
  Add to cart