Comments (3)
So I still get email notifs for this so I thought I might add.
I always thought this (perhaps to be reworded for inclusion in recitation notes) excerpt from the C standard was helpful in making the distinction between pointers and arrays:
Except when it is the operand of the sizeof
operator or the unary & operator, or is a character
string literal used to initialize an array of
character type [...] an lvalue that has type “array
of type ” is converted to an expression that
has type “pointer to type ” that points to the
initial member of the array object and is not an
lvalue
Basically just saying that arrays are almost always converted to pointers, yet making it clear that "array of type" is distinct from "pointer to type".
from recitations.
Started a revision at #47.
from recitations.
Looks like this was resolved in #47. I'll let someone reopen if that's not the case.
from recitations.
Related Issues (20)
- Should mode "a" create a new file if it doesn't exist? HOT 1
- Is the following block of code not ok because of the difference in handling negative numbers from different OS? HOT 1
- file io: va_list should be marked as an optional topic HOT 1
- while input redirection works, echo doesn't take stdin
- [NoteA] HOT 3
- [G-Structs] Padding stuff should be rolled back
- Is this right? HOT 7
- Note H contradicts lab3 instructions
- I-Debugging-GDB/gdb.md a possible typo HOT 2
- Midsemester review #2 is misleading on file descriptors
- This repo should be renamed "reviews" HOT 2
- incorrect right shift example HOT 1
- midsemester-review-1.md - two's complement sign bit description is wrong
- memory-pointers: strncpy example contains uninitialized reads HOT 4
- J-Fork-Exec is too verbose HOT 3
- L-tcpip
- Better code demos/examples
- Bits- Typos and Doubt HOT 1
- typo in K-File-IO/code/practice.md HOT 1
- Recitation Note D link broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recitations.