Notes on the C programming language

C is a widely used programming language, developed by Brian Kernighan and Dennis Ritchie during the 1970s. It is closely tied to the development of the Unix operating system.

A program written in C needs to be compiled - I use the Ubuntu pre-installed gcc. C programs can be debugged using GDB.

Pointers

type *ptrA pointer of type named ptr
*prtThe value of whatever prt is pointed at
*(ptr + i)The value of (whatever prt is pointed at plus i)
&thingThe address of thing
type *ptr = &thingA pointer of type named ptr set to the address of thing

Converting strings to integers

ASCIIDecimal
048
149
250
351
452
553
654
755
856
957

Links

incoming(3) | logbook | preonic | meta