SYSC 2006 Lecture Notes - Lecture 1: Declarative Programming, Logic Programming, Functional Programming
Document Summary
Imperative programming: co(cid:373)putatio(cid:374) spe(cid:272)ified usi(cid:374)g state(cid:373)e(cid:374)ts that (cid:272)ha(cid:374)ge the progra(cid:373)(cid:859)s state. Programs define sequence of steps that the computer will perform: declarative programming. Uses mostly functions instead of using variables. Importance of c: c is a small language, c progra(cid:373)(cid:373)ers are respo(cid:374)si(cid:271)le for (cid:373)a(cid:374)agi(cid:374)g the e(cid:454)e(cid:272)uti(cid:374)g a progra(cid:373)(cid:859)s (cid:373)e(cid:373)or(cid:455) correctly. With the new languages (java, python) the compiler or interpreter and run-time libraries take care of more memory management issues behind the scenes. In order to properly use c we need to understand the memory management as. C compilers and interpreters does not manage memory. #include