ENGG1003 Lecture Notes - Lecture 3: Integer Literal, Modulus Guitars, Microsoft Dynamics Ax

81 views3 pages

Document Summary

While conditions are tested before entering : condition retested before every repeat, variables should change after each loop. C arithmetic: x++ is a post-increment, ++x is a pre-increment. Integer division ignores any fractional component: the modulus operator provides the remainder after division, 10/3 = 3, 10 % 3 = 1. Relational operators: the result of a relational operation is 0 or 1, 0 is false, 1 is true, used as flow control conditions. Conditions: can be any combination of variables, operators, and literals. C arithmetic operator precedence: order of operations. * / first: + - second, force order with parentheses if necessary. Variable declaration: all variables are declared before use (manually) Initialised and uninitialised variables can be mixed: all variables declared in this way must be of the same type. Integer data types: several integer data types that vary by their size and support for negative numbers, c integer types can be 1, 2, 4, or 8 bytes long.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers