9 Apr 2017

C Data Types


Having read this section you should be able to:
  1. declare (name) a local variable as being one of C's five data types
  2. initialize local variables
  3. perform simple arithmetic using local variables
 There are five basic data types associated with variables:
  1. int (4 bytes size)- integer: a whole number.
  2. float (4 bytes size)- floating point value: ie a number with a fractional part.
  3. double (8bytes size)- a double-precision floating point value.
  4. char (1 bytes size)- a single character.
  5. void - valueless special purpose type which we will examine closely in later sections. 

No comments:

Post a Comment

commnet here