0% found this document useful (0 votes)
35 views2 pages

Glossary C Programming:: Keyword Identifier Constant String-Literal Operator Punctuator

C is a general-purpose programming language developed in 1972 for use with Unix. It uses tokens like keywords, identifiers, constants, and operators as basic elements. Constants represent fixed values like integers, floats, enums, or characters that cannot change. Variables are named locations in memory to store data, with naming rules like only letters, digits, and underscores, and maximum length of 31 characters. The character set includes letters, digits, and symbols. Identifiers name variables, types, functions, and labels, and must be unique from keywords. Delimiters mark boundaries between regions in data streams.

Uploaded by

Bujju Ma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

Glossary C Programming:: Keyword Identifier Constant String-Literal Operator Punctuator

C is a general-purpose programming language developed in 1972 for use with Unix. It uses tokens like keywords, identifiers, constants, and operators as basic elements. Constants represent fixed values like integers, floats, enums, or characters that cannot change. Variables are named locations in memory to store data, with naming rules like only letters, digits, and underscores, and maximum length of 31 characters. The character set includes letters, digits, and symbols. Identifiers name variables, types, functions, and labels, and must be unique from keywords. Delimiters mark boundaries between regions in data streams.

Uploaded by

Bujju Ma
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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.

You might also like