Comment

Comment by greypowerOz

as a C noob, this example is humorously confusing...

declare an array, fair enough, makes sense.

Declare a char *pointer,(a "reference to something in memory") ok if you say so.

Assign the char pointer the ARRAY name.... erm, ok.. so ... that would make the char pointer the 'first char in the array' then?

lol no you silly old duffer, it sets the char pointer to the memory address of the first char in the array.. not the contents of that location, obviously ;)

parent greypowerOz 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton