Sie sind auf Seite 1von 2

Glossary C programming: C (pronounced "See") is a general-purpose computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone

Laboratories for use with the Unix operating system. Tokens: In a C source program, the basic element recognized by the compiler is the "token." A token is source-program text that the compiler does not break down into component elements. keyword identifier constant string-literal operator punctuator

Constants in c: C Constants A "constant" is a number, character, or character string that can be used as a value in a program. Use constants to represent floating-point, integer, enumeration, or character values that cannot be modified. Syntax constant: floating-point-constant integer-constant enumeration-constant

character-constant Variables: Defining Variables A variable is a meaningful name of data storage location in computer memory. When using a variable you refer to memory address of computer. Naming Variables The name of variable can be called identifier or variable name in a friendly way. It has to follow these rules:

The name can contain letters, digits and the underscore but the first letter has to be a letter or the underscore. Be avoided underscore as the first letter because it can be clashed with standard system variables. The length of name can be up to 247 characters long in Visual C++ but 31 characters are usually adequate. Keywords cannot be used as a variable name.

Of course, the variable name should be meaningful to the programming context.

Character set in c A character contains any alphabet, digit or special symbol to represent information. The set or character which is valid in C program is called character set. The set includes some graphic characters. Graphic characters contain alphabets, digits and some special symbols. C language uses case letters (a to z), the digit (0 to 9) and certain special characters like constants, variables, operators etc. and some special symbols:- $, <, >, <=, =, !, # etc. Non graphical character sets contain white spaces these are also called escape sequences. Identifiers: "Identifiers" or "symbols" are the names you supply for variables, types, functions, and labels in your program. Identifier names must differ in spelling and case from any keywords. You cannot use keywords (either C or Microsoft) as identifiers; they are reserved for special use. You create an identifier by specifying it in the declaration of a variable, type, or function. In this example, result is an identifier for an integer variable, and main and printf are identifier names for functions. Delimiters: A delimiter is a sequence of one or more characters used to specify the boundary between separate, independent regions in plain text or other data streams.

Das könnte Ihnen auch gefallen