Experiment4 - Hacettepe University Department of Computer...

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

View Full Document Right Arrow Icon
Hacettepe University Department of Computer Engineering 1 Hacettepe University Department of Computer Engineering Fall / 2009-2010 BIL137 Software Laboratory Experiment 4 Subject :Functions and Arrays Programming Language :ANSI C Submission Date :19.11.2009 Date Due : 03.12.2009 Advisers : Oğuz ASLANTÜRK oguz.aslanturk@cs.hacettepe.edu.tr R.A. Kazım SARIKAYA kazimsarikaya@cs.hacettepe.edu.tr CONTENTS 1. INTRODUCTION . ................................................................................................................................ 1 2. EXPERIMENT . ..................................................................................................................................... 3 3. SAMPLE SCREENSHOT AND OUTPUT . ......................................................................................... 5 4. HINTS . .................................................................................................................................................. 5 5. SUBMIT . ............................................................................................................................................... 6 6. NOTES . ................................................................................................................................................. 6 7. REFERENCES . ..................................................................................................................................... 6 1. INTRODUCTION A computer program executes in the way it is coded. A computer engineer codes different tasks in different parts (modules) called functions. Programming with functions is important because: It is easy to change a work flow or a task without changing all parts of the program. A function encapsulates solutions inside itself and other programmers can re-use these solutions easily, i.e. functions in math library in C. Codes are easier to understand and maintain. All programming languages use variables in order to store data needed in the program. It is
Background image of page 1

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

View Full DocumentRight Arrow Icon
Hacettepe University Department of Computer Engineering 2 not possible or feasible to store data in individual variables one by one when huge amounts of data exist. Hence we use a kind of type concept called an array . An array is stored as a sequence of adjacent memory cells called array elements which can
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

Experiment4 - Hacettepe University Department of Computer...

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

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