152x Filetype PDF File size 0.34 MB Source: web.cs.hacettepe.edu.tr
Pointers in C BBM 101 -Introduction to Programming I HacettepeUniversity Fall 2016 Fuat Akal, Aykut Erdem, Erkut Erdem Slides based on the material prepared by Carl Burch (Hendrix College) with modifications by Elizabeth Patitsas (U Toronto) Recap: Anatomy of a Typical C Program #preprocessor directives declarations variables functions int main (void){ declarations; statements; return value; } Your First C Program hello.c /* Welcome to BBM 101 */ #includeint main(void) { printf(“Hello world!\n”); return 0; } Hello world! Your First C Program hello.c /* Welcome to BBM 101 */ /* comments */ #include global declarations #include external files int main(void) { main function printf(“Hello world!\n”); return 0; } Hello world!
no reviews yet
Please Login to review.