ECOR 1606 Lecture Notes - Lecture 1: Semicolon, In C, Pseudocode

95 views5 pages
Verified Note

Document Summary

With a name or a label (eg. a, a1, x, y, a, a_5) A valid name starts with a letter, contains no space character and can be any combination of letters and numbers and _ (underscore). Whole numbers (c++ : int ) can take any value between -2,147,483,648 to. Decimals or floating-point data type (c++ : double or float) can take any value in the domain : 1. 7e-308 to 1. 7e308. Boolan (c++ : bool ) is used for variable that can take only two values (false/true or. 0/1) more discussion about this type in week 3. // this defines a variable name, of type string, with text content hello string name = hello ; // this defines a variable named n, of type integer (ie whole number) int n; // this defines a variable named m, of type integer (ie whole number) with a value of 5 int m = 5;

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents