Wednesday, January 4, 2012

What are the important features of a C program?

The main function name must be main

The program body must start with {.

The program body must end with }.

A C statement must end with ;.

A C statement is case sensitive.

A C statement is location insensitive.

In general, it is acceptable to add blank(s) between tokens in a C statement but not acceptable to add blank(s) within a token.

C uses character escape sequences that consist of a backslash followed by other character(s) in string literals to represent special characters and actions.

Make your comments stand out. Do not hide them. Adopt a style that is neat and orderly. Set aside time for wring comments in your programs.

No comments:

Post a Comment