Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1013 Bytes

c-tokens.md

File metadata and controls

29 lines (22 loc) · 1013 Bytes
description Learn more about: C Tokens
title C Tokens
ms.date 11/04/2016
helpviewer_keywords
tokens
translation units
ms.assetid 05e5f6f1-b8ea-4f74-af17-c0b9b5dbd3b5

C 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 doesn't break down into component elements.

Syntax

token:
 keyword
 identifier
 constant
 string-literal
 operator
 punctuator

Note

See the introduction to C Language Syntax Summary for an explanation of the ANSI syntax conventions.

The keywords, identifiers, constants, string literals, and operators described in this section are examples of tokens. Punctuation characters such as brackets ([ ]), braces ({ }), parentheses ( ( ) ), and commas (,) are also tokens.

See also

Elements of C