






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to the c programming language, focusing on identifiers, linkage, and storage classes. Topics covered include the difference between external and internal linkage, static and automatic storage classes, and the use of static variables. The document also touches upon the c compiler and its options, as well as pointers and argument arrays.
Typology: Study notes
1 / 30
This page cannot be seen from the preview
Don't miss anything!























Introduction To C Lawrence Angrave
char * search(char*) { char result[100]; … do stuff return result; }
static int debug=1; main(…) { }
Identifiers (variables & functions) visible to another c file? Main.c = Compilation unit Myutils.c = Another compilation unit Static : No!
Refer to runsuperfast and die? extern int runsuperfast; void die(char *mesg);
Refer to runsuperfast and die? void die(char *); // declaration! extern int runsuperfast;
Many options! man gcc Three for the price of one Preprocessor Compiler Linker
How to shoot yourself in the foot and not realize it
What is the value of p == &*p; p[0] == *p
Explain this to your neighbor