Solution for Exercise 18-2

ex1802

#include <stdio.h>

int main()
{
    char string[] = "Does this string make me look fat?";

    printf("The string \"%s\" has a size of %lu.\n",
            string,sizeof(string));
    return(0);
}

Output

The string "Does this string make me look fat?" has a size of 35.