02-C_Basics

02-C_Basics - 1 CSC 4304 - Systems Programming Fall 2010...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 CSC 4304 - Systems Programming Fall 2010 Tevfik Ko ! ar Louisiana State University August 26 th , 2010 Lecture - II Basics of C Programming Summary of Last Class Basics of UNIX: logging in , changing password text editing with vi, emacs and pico file and directory operations file/dir permissions and changing them process monitoring and manipulation 2 C vs. Java C is procedural, not object oriented C has no objects, interfaces or packages A program only consists of functions and data C is compiled, not interpreted-Translated directly to assembly language-Faster, less portable and very hard to debug. C has no array bounds, null pointer or cast checks-You have to detect and handle all problems yourself C has no garbage collector-You have to do all of the memory management yourself 3 C vs. Java (cont.) C has pointers Similar to Java references but... ...they can be used in calculations (pointer arithmetic) Allows you to use the location of data in computations (not just the value) Useful, powerful and a debugging nightmare! Compared to Java, C is a low-level language- You can and must do everything yourself- Suitable for low-level software like device-drivers, communication libraries, operating systems, etc.libraries, operating systems, etc....
View Full Document

Page1 / 5

02-C_Basics - 1 CSC 4304 - Systems Programming Fall 2010...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online