CSE1320Ch3Notes

CSE1320Ch3Notes - Ch. 3 notes : Basic Data Types I. 'Type'...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Ch. 3 notes : Basic Data Types I. 'Type' classifications: A. Scalar 1. can contain only a single data value at a time 2. arithmetic a. integer ( int ) %d(occupies 4 bytes in memory on OMEGA, 2 on PC) b. character ( char ) %d or %c (1 byte) c. short integer ( short int or short ) %h (2 bytes) d. long integer ( long int or \ long ) %l (8 bytes) e. unsigned integer ( unsigned int ) %u (4 bytes) f. unsigned long integer ( unsigned long int ) %u (8 bytes) g. unsigned short integer ( unsigned short int ) %u (2 bytes) h. floating point ( float, double or long double) (1) float : single precision (4 bytes) (2) double : double precision (8 bytes) (3) long double : extra precision (8 bytes) 3. enumerated (see Ch. 7.5, pp. 385-93) 4. pointer (8 bytes) (a variable that contains as its value the address of what it points to) a. char * b. int * c. float * d. struct node *
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 B. Aggregate 1. can store multiple data items of the same type a. arrays b. structures c. unions 2. can be embedded C. Function
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

CSE1320Ch3Notes - Ch. 3 notes : Basic Data Types I. 'Type'...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online