SYSC 2006 Lecture Notes - Lecture 3: Gold Base, Function Prototype, Operand

78 views4 pages

Document Summary

Sysc 2006 lecture 03 -- basic information about c. Type qualifiers were mentioned, (ie. unsigned, short, long) This will be looked at later on in sysc 2006. These are descriptors for the pre-existing types in c programming. 1. 2, -7. 2, 2e-3, 5e+7, and 7. 3e+4 are doubles. X" is a char (not a character string) Characters are specifically enclosed in single quotes. Rules for variable names are as follows: Remaining characters must be letters (a-z) or digits (0-9) Underscore (_) will count as a letter. Uppercase and lowercase letters are distinct from each other. Ie. y and y are different variables. Variables must be declared before using (in c) Variables can be assigned a value when declared. ** c doesn"t like to infer what types of variables you are declaring, so you must do it yourself. Binary operators: +, -, *, /, % For integer operands the direction of rounding for negative operands (for / and %)

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

Related Documents