Expression Statements
Any expression followed by a semicolon forms an expression statement:
expression;
The mikroC PRO for ARM executes an expression statement by evaluating the expression
. All side effects from this evaluation are completed before the next statement starts executing. Most of expression statements are assignment statements or function calls.
A null statement is a special case, consisting of a single semicolon (;
). The null statement does nothing, and therefore is useful in situations where the mikroC PRO for ARM syntax expects a statement but the program does not need one. For example, a null statement is commonly used in “empty” loops:
for (; *q++ = *p++ ;); /* body of this loop is a null statement */
Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
What do you think about this topic ? Send us feedback!