Solution for Exercise 7-9

ex0709

#include <stdio.h>

int main()
{
    char a,b,c,d;

    a = 'W';
    b = 'o';
    c = 'w';
    d = '\n';
    putchar(a);
    putchar(b);
    putchar(c);
    putchar(d);
    return(0);
}

Notes

* Multiple putchar() functions are required, one for each variable.

* When you see an arrangement of several individual variables all of the same time, each assigned values and then functions manipulating those values, you probably want to use an array. Arrays are covered in Chapter 12 in the book.