O'Reilly logo

C Primer Plus, Fourth Edition by Stephen Prata

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

Chapter 7. C Control Statements: Branching and Jumps

You will learn about the following in this chapter:

  • Keywords

    if, else, switch, continue

    break, case, default, goto

  • Operators

    && || ?:

  • Functions

    getchar(), putchar(), the ctype.h family

  • How to use the if and if else statements and how to nest them

  • Using logical operators to combine relational expressions into more involved test expressions

  • C's conditional operator

  • The switch statement

  • The break, continue, and goto jumps

  • Using C's character I/O functions—getchar() and putchar()

  • The family of character-analysis functions provided by the ctype.h header file

As you grow more comfortable with C, you will probably want to tackle more complex tasks. When you do, you'll need ways to control and organize these projects. ...

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