prdk_day2a - A d v a n c e d P r o g r a m m i n g i n Q u...

Info iconThis preview shows pages 1–4. 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

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: A d v a n c e d P r o g r a m m i n g i n Q u a n t i t a t i v e E c o n o m i c s Introduction, structure, and advanced programming techniques 17 – 21 August 2009, Aarhus, Denmark Charles Bos cbos@feweb.vu.nl VU University Amsterdam Tinbergen Institute Advanced Programming in Quantitative Economics – p. 1 Tutorial Day 2 - Morning 10.30P Tutorial ◦ Addresses ◦ Minimal blocks 12.00 Lunch Advanced Programming in Quantitative Economics – p. 2 Exercise: Addresses Create a (or multiple small) program(s) with a main and a function: 1. Pass an integer to the function, return the square. 2. Pass an integer to the function, pass the square back through an address. 3. Pass a string, e.g. sX= "Aargus"; to the function. Can you change only the “g” to a “h”? (Maybe first try without the function: How would you change an element of a string, directly within main?) 4. Pass the array aX= {"Aargus", 5, <2.4, 4.6>}; to the function, change the 5 to a 7, the 4.6 to its square, and the “g” to afunction, change the 5 to a 7, the 4....
View Full Document

Page1 / 7

prdk_day2a - A d v a n c e d P r o g r a m m i n g i n Q u...

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

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