C Syntax

C Syntax

The syntax of the C programming language is a set of rules that specifies whether the sequence of characters in a file is conforming C source code. The rules specify how the character sequences are to be chunked into tokens (the lexical grammar), the permissible sequences of these tokens and some of the meaning to be attributed to these permissible token sequences (additional meaning is assigned by the semantics of the language).

C syntax makes use of the maximal munch principle.

Read more about C SyntaxControl Structures

Other articles related to "c syntax":

C Syntax - Miscellaneous - Undefined Behavior
... For example, the following code produces undefined behavior, because the variable b is modified more than once with no intervening sequence point #include int main(void) { int a, b = 1 a = b++ + b++ printf("%dn", a) return 0 } Because there is no sequence point between the modifications of b in "b++ + b++", it is possible to perform the evaluation steps in more than one order, resulting in an ambiguous statement ... This can be fixed by rewriting the code to insert a sequence point in order to enforce an unambiguous behavior, for example a = b++ a += b++ or a = (b += 2) ...