Coder Social home page Coder Social logo

salma-emara / aps105-book Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 3.0 344.15 MB

Source code for Snefru: Learning Programming with C book

Home Page: https://learningc.org

License: GNU General Public License v3.0

Jupyter Notebook 1.42% TeX 0.09% C 21.04% CSS 1.34% JavaScript 76.11%
c education aps105 programming university-of-toronto

aps105-book's People

Contributors

anlowee avatar baochunli avatar errban avatar salma-emara avatar yvonne-yang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

aps105-book's Issues

Typo

In Chapter 8.1 What is dynamic memory allocation?, section 8.1.2Ppractice Problem. Step 2: Think of a solution!

In second paragrah, "We compare element at indexA in a with the element at indexB at b: a[index] < b[indexB]. We copy a[indexA] to the merged array if a[index] is less than b[indexB], else we copy b[indexB]."

A few a[indexA] was typed as a[index].

Issue on page /chapters/preface/principles.html

Hi!

Found a typo in the first paragraph:
"you can also download the .c file of the program by clicking on file name in text. Foe example, download hello-world.c if you want to edit ... "

Great ebook!

Issue on page /chapters/chapter09-multi-dimensional-arrays/why-2d.html

For chapter 9.1.2 about 2D array,

I tried using one pointer won't work in my codes in C,
for example for
int array[4][4];
to get array[1][2]
I tried *(array + 1 * 4 + 2) won't work
but rather a two-pointer stuff ((array+1)+2) worked for my code

FYI, I didn't use malloc to initialize the 2D array

As I tried something else, and find that in my professor Anderson's notes, he multiply the (1 * 4 + 2) by the size of 'int', however, that still didn't work for my code, I think.

I could be wrong though, please let me know if I understand it wrong.

Best regards,
William Wen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.