COIS 1520H Lecture Notes - Lecture 3: Boolean Data Type, Relational Operator, Operand
Document Summary
Empty string- the stri(cid:374)g (cid:862) (cid:863) which co(cid:374)tai(cid:374)s (cid:374)o characters, is call the e(cid:373)pty stri(cid:374)g. Widening- assigning an integer value to a double variable. Widening always works. (every integer is a double) Why do you document your code: so, other people can understand it, you can understand it when you read it later. The scope of a variable is the portion of the program that can refer to it. Condition: is an expression involving relational and logical operators. The result of the condition is boolean, that is, true or false. A numeric representation for every key on the keyword and for other assorted characters. Asc(str) is ansi value of the first character of str. Relational operators are binary- they require an operand on both side of the operator. Value of the relational operator will always be true of false ] Not- makes a false expression true and vice versa.