CS 61C Quiz - Week 2

Current time: Tue Jun 28 09:19:07 2022

Deadline: Sun Feb 3 23:59:00 2008


Question 1:

What is the general rule for Type Conversions in C?  That is to say, 
what types of conversions are allowed and which (should) cause warnings or errors?

Question 2:

C variables are always passed to functions by value.  To change the value of a variable passed to a function 
inside the function we must emulate pass by reference.  Give a brief example of how to do this and explain
 exactly what is being passed between functions and how it is used.

Question 3:

What are the differences between a typedef and #define?

Send a confirmation email to my class account.