Lecture 13 - Pass by Value, Pass by Reference

Lecture 13 - Pass by Value, Pass by Reference - Announc e m...

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

View Full Document Right Arrow Icon
13. Pass-by-value & Pass- by-reference Oct. 26, 2006 III-1, III-2, IV-7 Announcements • A2 – almost marked • A3 – advising, appointments, etc. • A4 on Web-site – start now • Midterm Grades on web-site soon Code Log • starting now • monitor your progress • get help with how to start • help you manage your time • get better help from TAs and instructor Last time • strings are arrays of characters • strings have a size and a length • the length of the string depends on the \0 • the size is the memory available • strings are not Nerf TM • strcpy - string copy Some other functions in <string.h> • strcpy • strcat • strcmp • strlen • strings.c Another gotcha! strcmp is 0 (false) if the strings are the same! actually does an alphabetical comparision: 0 – strings are the same <0 - first string is alphabetically before the second string >0 – first string is alphabetically after the second string
Background image of page 1

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

View Full DocumentRight Arrow Icon
Modulo • % – is the modulo operator • it gives the remainder of a long
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.

This note was uploaded on 04/17/2011 for the course CIS 1500 taught by Professor Kramer during the Spring '06 term at University of Guelph.

Page1 / 4

Lecture 13 - Pass by Value, Pass by Reference - Announc e m...

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