CS Behind the Curtain (CS195 2003S)
Primary:
[Front Door]
[Current]
[Glance]
-
[Blurb]
[Disabilities]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Walker/Fall 2001]
[SamR]
Back to Representing Real Numbers. On to Bitwise Operations.
Held: Monday, 10 February 2003
Summary: Today we consider many of the fundamental types in C and selected operations on those types.
Related Pages:
Notes:
Overview:
int
short int (or just short)
long int (or just long)
char
long long int (in some implementations).
four-byte-int).
signed or
unsigned.
U (for unsigned) and/or
L (for long) or S for short.
float
double (often more bits than float)
long double (more more bits than double)
Enumerated typesare types that you can easily map to and from the integers.
enum enumeration-name { name1 ... namen };
enum days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY };
name=value.
++x, increments a variable
and returns its new value.
x++, increments a variable
and returns its old value.
x += 5 increments x by 5, storing the result in x.
x *= 2 multiplies x by 2, storing the result in x.
x -= 3 subtracts three from x, storing the result
in x.
x=+2?
Tuesday, 7 January 2003 [Samuel A. Rebelsky]
Monday, 10 February 2003 [Samuel A. Rebelsky]
Back to Representing Real Numbers. On to Bitwise Operations.
Primary:
[Front Door]
[Current]
[Glance]
-
[Blurb]
[Disabilities]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Walker/Fall 2001]
[SamR]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Fri May 2 14:20:22 2003.
The source to the document was last modified on Mon Feb 10 14:04:49 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS195/2003S/Outlines/outline.13.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby