Exam 2 Exam 2 Regrading Average: 69 TA: Fardad

Slides:



Advertisements
Similar presentations
Chapter 10 Pointers and Dynamic Arrays. Copyright © 2006 Pearson Addison-Wesley. All rights reserved Learning Objectives Pointers Pointer variables.
Advertisements

1 Chapter Thirteen Pointers. 2 Pointers A pointer is a sign used to point out the direction.
Copyright©2000 by Houghton Mifflin Company. All rights reserved. 1 QUESTION.
Pointers Example Use int main() { int *x; int y; int z; y = 10; x = &y; y = 11; *x = 12; z = 15; x = &z; *x = 5; z = 8; printf(“%d %d %d\n”, *x, y, z);
Kirkwood Center for Continuing Education Introduction to PHP and MySQL By Fred McClurg, © Copyright 2010, All Rights Reserved 1.
INTRODUCTION TO EMBEDDED SYSTEMS INTERFACING TO THE FREESCALE 9S12 Power Point Presentation Local Variables and Parameter Passing 8-1.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Dynamic Memory Allocation 9.8.
Copyright © 2006 Pearson Addison-Wesley. All rights reserved This Weeks Topics: Pointers (continued)  Modify C-String through a function call 
CISC105 – General Computer Science Class 8 – 06/28/2006.
Gator Engineering Project 1 Grades released Re-grading –Within one week –TA: Fardad, or office hours: MW 2:00 – 4:00 PM TA Huiyuan’s office hour.
Parameterization of Tabulated BRDFs Ian Mallett (me), Cem Yuksel
FLUORECENCE MICROSCOPY SUPERRESOLUTION BLINK MICROSCOPY ON THE BASIS OF ENGINEERED DARK STATES* *Christian Steinhauer, Carsten Forthmann, Jan Vogelsang,
Hodgkin-Huxley David Wallace Croft, M.Sc. Atzori Lab, U.T. Dallas
Elementary Particle Physics
Lecture 21.
Characterization of Circuit Components Using S-Parameters
Department of Informatics
The content of this presentation is provided by
Varun Kelkar Mentors: Eric Quintero and Rana Adhikari
Financing the SDGs in the Pacific
Numbers in a Computer Unsigned integers Signed magnitude
FW calibration and analysis status Test beam 2011:
Physics 3 – Sept 27, 2016 Do Now: P3 Challenge –
10.2 Simple Harmonic Motion and the Reference Circle
Derivatives of Trigonometric Functions
Digital Filtering Convolution of time series
Head-Tail DAQ Upgrade Meeting
Design of a low noise millimeter wave interferometer based on single sideband modulation Zhong Heng Tsinghua Univ. Gao Zhe, Professor Ling Bili, Professor.
An Application of the fundamental theorem of calculus: Rate graphs
C3 REVISION – CHAPTER 1 – THE PERIODIC TABLE
BRO. OLUBUKUNOLA JEMINUSI
Modeling of mismatch losses due to partial shading in PV plants with custom modules Gianluca Corbellini
Measurement of formation cross-sections and decay properties for short-lived isomers produced in photonuclear interactions Justin Delaney | CSIRO & University.
ASTERICS Periodic Review 1
Exam Question: Homework due Friday, Jan 22nd
NeuroProtection with the TriGuard Embolic DEFLECTion Device
Shauna L. Sowga Professor, Social Sciences
MITM
Cooling – Storage Ring & RF
Promoting fairer distribution of wealth
RESISTANCE AND REBELLION (riot, protest, revolt, revolution)
Coq Mg Walmart coq10 200mg capsules how much coq10 should be taken with statins But, we have not been making testosterone cypionate coq10 50 mg healthy.
My Career Project By: William Carrillo.
We are fond of pets Выполнила учитель английского языка
CIBT Investor Presentation v.90
Using Rhetoric Ethos, Logos, & Pathos.
Chapter 13: Energy Resources
“Studying C programming excluding pointers is meaningless.” d0m3z
EPSII 59:006 Spring 2004.
FIGURE 9-5 Integer Constants and Variables
Using local variable without initialization is an error.
Copyrights apply.
Pointers and Arrays Chapter 12
CprE 185: Intro to Problem Solving (using C)
CSC 253 Lecture 8.
C Passing arrays to a Function
CSC 253 Lecture 8.
Raw Materials and Resources
توكيد الذات.
Copyright © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Pointers (continued) Chapter 11
Pointers.
Regrading Project 2 Exam 2 One week period TA: Huiyuan TA: Fardad
Pointers and Arrays Chapter 12
Simulating Reference Parameters in C
Copyright © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Programming question Wrong syntax, e.g. (-5 pts)
Elapsed Time.
Copyright © 2004 The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 9: Pointers and String
Presentation transcript:

Exam 2 Exam 2 Regrading Average: 69 TA: Fardad Office hours: MW 2:00 PM – 4:00 PM Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 1 Demonstrate the use of reference operator Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 2 Demonstrate the binding of pointers to the variables Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 2 (continued) Demonstrate the binding of pointers to the variables Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 3 Swapping two variables Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 4 Pointer addresses in arrays Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 5 Pointer arithmetic Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 6 Pointer indexing Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 7 Passing pointers as parameters Having multiple “return” values Copyright © 2008 W. W. Norton & Company. All rights reserved.

Examples Example 8 Passing pointers as parameters Having multiple “return” values Copyright © 2008 W. W. Norton & Company. All rights reserved.