O'Reilly logo

Learn C on the Mac: For OS X and iOS, Second Edition by James Bucanek, David Mark Scott Brown

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix

Answers to Exercises

This appendix features the answers to the exercises in the back of each chapter. Chapter 3 was the first chapter to feature exercises, so that's where we start.

Chapter 3

  1. This screenshot shows the error we got when we changed SayHello() ; to SayHello(;.

    Image

  2. This screenshot shows the error we got when we changed main to MAIN. The linker fails because every program must have a function named main(), and now yours doesn’t.

    Image

  3. This screenshot shows the error we got when we deleted the left curly brace that opens the main() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required