Skip to content

Commit

Permalink
Minor.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmccall committed Oct 31, 2017
1 parent 789b76d commit 51d65fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _posts/2017-10-31-Arrays-and-Pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ There are some pretty widespread misconceptions about arrays and pointers in C.
Arrays and pointers are different but related things. I think the idea’s pretty
easy to get, but you have to approach it the right way.

So, first, go read the post about [Types and Objects](2017-10-31-Types-and-Objects).
So, first, go read the post about [Types and Objects](https://rjmccall.github.io/2017-10-31-Types-and-Objects).

Array types in C are complete object types, for the most part like any
other object type. Recall that a complete object type describes a set of
Expand Down
4 changes: 3 additions & 1 deletion _posts/2017-10-31-Types-and-Objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ layout: post
title: C types and objects
---

This post is most meant as a common background for other posts.

Most types in C are what are called *complete object types*, which is to say,
they define a set of expressible values.
they define a set of expressible values. Not all types do!

For example, ``int`` is a type which can express a certain range of positive
and negative integers, and ``struct int_pair`` is a type which can express
Expand Down

0 comments on commit 51d65fb

Please sign in to comment.