fbpx

WHAT ARE THE BASIC CONCEPTS IN C PROGRAMMING LANGUAGE?

The Basic concepts of C programming language includes in one topic called as TOKEN.

The C programming language consists of various types of TOKENS.

What is a TOKEN?????? The Basic Concept Of C Programing Language.

A token is a smallest individual unit in a program.

A    C   program consists of various tokens as a token can either be a KEY WORD

    IDENTIFIER

    CONSTANT

    STRING

    SYMBOL

KEYWORD:

  • Key words are the reserved words which have a particular meaning. And already defined by the developer.

  • Key words cannot be used as a variable name or function name.

  • There are totally 32 keywords in C programming language.

Auto

Else

Long

Switch

Break

Enum

Register

Typedef

Case

Extern

Return

Union

Char

Float

Short

Unsigned

Const

For

Signed

Void

Continue

Goto

Sizeof

Volatile

Default

If

Static

While

Do

Int

Struct

pack

IDENTIFIER:

A  C  identifier is a name used to identify a variable, function, or any other user-defined items.

  • An identifier starts with a letter A to Z, a to z, or an underscore “_” followed by zero or more letters.

  • C does not allow punctuation characters such as @, $, and % within identifiers.

  • C  is a case sensitive programming language. Thus PROGRAM and program are considered differently in C.

CONSTANTS:

Constants are the fixed values that the program may not alter during its execution. These fixed values are also called as LITERALS.

  • Constants can be of any data type.

  • Constants are treated just like regular variables except that their values cannot be modified after definition

STRING:

  A string is a set of characters followed by a null character .

  • A string is any series of characters that are interpreted literally by a script.

  • A string can hold only Character datatype values.

SEMI COLONS:

In a C program, the semicolon is nothing but a statement terminator. Each statement in a C program have to end with a Semicolon.

COMMENTS:

Comments are like helping text in a program. They are ignored by a compiler. They start with “ /* “ and terminate with the characters “ */ “ .

EXAMPLE:

/* HELLO   IIES  */