Using Eclipse, checkout the PointersHomework project from your individual SVN repository into your Eclipse C workspace. You will need to do more analysis than coding. As such, you will type out short answers to many questions in homework.txt and save your answers in your repository, and will draw two box-and-pointer diagrams to hand in next class. (6 pts for diagrams and 29 points total for code and typed answers)
basicPointers() function, but don't run it yet. basicPointers() function. Make sure you diagram everything in the function. YOU WILL HAND THIS PAPER IN NEXT CLASS. basicPointers() BEFORE RUNNING IT and write it in homework.txt. basicPointers() and run it to see the actual output. Were you right? If not, explain what you learned from this. everybodyUp() function, but don't run it yet. everybodyUpTest) to the everybodyUp() function and the code in it. everybodyUpTest() BEFORE RUNNING IT. everybodyUpTest() and run it to see the actual output. Were you right? If not, explain what you learned from this. doubleMe that doubles the integer value passed to it. The doubleMe function had been called using doubleMe(num); you'll need to change it to pass the address instead to make it work correctly with your function. swap() function that swaps the values of two floating point numbers passed to it: after x=10.0, y=20.3; and swap(...); then we should have x==20.3 and y==10.0. You will need a temporary variable in your function. You will also have to change how swap is called. (3 pts) Explain what's wrong with this code. (You may run it to check after you think about it.)
float* ptr = 0;
printf("%4.2f\n", *ptr);
Watch the set of videos assigned for next time and complete the take-home quiz. The main schedule page contains links to the videos, slides, and quiz. Paper copies of the quiz are due at the start of next class.