Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CS1025 19 -- The C Programming Language Western University

Rating
-
Sold
-
Pages
34
Grade
A+
Uploaded on
30-08-2023
Written in
2023/2024

CS1025 19 -- The C Programming Language Western University

Institution
Course

Content preview

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

Written for

Course

Document information

Uploaded on
August 30, 2023
Number of pages
34
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$21.18
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Ethanhope Chamberlain College Of Nursng
Follow You need to be logged in order to follow users or courses
Sold
99
Member since
5 year
Number of followers
97
Documents
2789
Last sold
10 months ago

4.4

20 reviews

5
15
4
2
3
0
2
1
1
2

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions