![Advantech UbiQ Скачать руководство пользователя страница 53](http://html1.mh-extra.com/html/advantech/ubiq/ubiq_user-manual_2856809053.webp)
47
UbiQ Scenario Manager User Manual
Chapter 4
B
asic of
Smart-C
S
cript
Language
Symbol
Type of Operation
Associativity
[ ] ( ) .
Expression
Left to right
+ ®C
Unary
Right to left
* / %
Multiplicative
Left to right
+ ®C
Additive
Left to right
< > <= >= == !=
Relational
Left to right
& | && || << >>
Logical and Bitwise
Left to right
An expression can contain several operators with equal precedence. When several
such operators appear at the same level in an expression, evaluation proceeds
according to the associativity of the operator, either from right to left or from left to
right. The direction of evaluation does not affect the results of expressions that
include more than one multiplication (*), addition (+), or binary-bitwise (& | ) operator
at the same level.
Statements
The statements of a C program control the flow of program execution. In C, as in
other programming languages, several kinds of statements are available to perform
loops, to select other statements to be executed, and to transfer control. Following a
brief overview of statement syntax, this section describes the C statements in alpha-
betical order:
* block statement
* break statement
* continue statement
* expression statement
* for statement
* if statement
* return statement
* while statement
block statement
Содержание UbiQ
Страница 1: ...User Manual UbiQ Scenario Manager User Manual V1 03...
Страница 4: ...UbiQ Scenario Manager User Manual iv...
Страница 7: ...Chapter 1 1 Introduction...
Страница 13: ...Chapter 2 2 Getting Started...
Страница 37: ...Chapter 3 3 Tutorials...
Страница 47: ...Chapter 4 4 Basic of Smart C Script Language...
Страница 62: ...UbiQ Scenario Manager User Manual 56...
Страница 63: ...Chapter 5 5 Functions Reference...