Wednesday, January 4, 2012

Why does the line printf("This is C!"); end with a semicolon?

The line printf("This is C!"); is a C statement. C statements appear in the body of functions. C statements must be terminated by a semicolon, which is also known as a statement terminator. The semicolon at the end of a C statement acts much like a period at the end of a sentence. A typical program has many C statements, each terminated with a semicolon.

No comments:

Post a Comment