Friday, February 11, 2011

6 unkonwn C language components

The C language has many other parts, making it look rather bizarre to the new programmer. Right now, all that’s standing between ignorance and knowledge is time, so don’t dwell on what you don’t know. Instead, keep these few points rolling around in your mind, like so many knowledge nuggets:

The C language uses words — keywords, functions, and so forth — as its most basic elements.

Included with the words are symbols. Sometimes these symbols are called operators, and at other times they’re called something else. For example, the plus sign (+) is used in C to add things.

The words have options and rules about how they’re used. These rules are all referenced in the C reference material that came with your compiler. You don’t have to memorize all of them, though a few of them become second nature to you as you study and use C.

Parentheses are used to group some of the important items required by C words. The words are put together to create statements, which are similar to sentences in English. The statements all end with a semicolon.

Braces are used to group parts of a program. Some words use braces to group their belongings, and all the separate functions you create within a program are grouped by braces. The braces have been used to con­tain the belongings of the main() function.

All this stuff put together (and more stuff I dare not discuss at this point) makes up the syntax of the C language. Syntax is how languages are put together.

Passage reproduced from:http://clanguage86.blog.co.in/2011/02/11/6-unkonwn-c-language-components/

See also:

The Four Steps to build a C program

5 steps to reedite your C source code file

What's the meaning of recompiling the C program?

Sponsor:DVD Rippers

No comments:

Post a Comment