الجمعة، 19 فبراير 2016

chapter 3 part2

int Data Type
•Examples:
-6728
0
78
+763
•Positive integers do not need a + sign
•No commas are used within an integer
−Commas are used for separating items in a list



bool Data Type

•bool type

Two values: true and false

Manipulate logical (Boolean) 
expressions

true and false are called logical 

values

bool, true, and false are 

reserved words


char Data Type
The smallest integral data type
Used for characters: letters, digits, 
and special symbols


Each character is enclosed in 
single quotes

'A', 'a', '0', '*', '+', '$', 
'&'

A blank space is a character and 
is written ' ', with a space left 
between the single quotes



ليست هناك تعليقات:

إرسال تعليق