Difference between revisions of "IntroToProgramming"
From Bloominglabs
m |
|||
Line 23: | Line 23: | ||
** [http://harold.uits.indiana.edu/~jtillots/IntroToProgramming/lecture3/ Code] | ** [http://harold.uits.indiana.edu/~jtillots/IntroToProgramming/lecture3/ Code] | ||
** Homework: | ** Homework: | ||
+ | *** Read pages 41 through 54 | ||
*** Print out the ascii table for ascii values from 0 to 127. Include decimal, octal, hexidecimal, and char values for each value. You may find page 154 very helpful. | *** Print out the ascii table for ascii values from 0 to 127. Include decimal, octal, hexidecimal, and char values for each value. You may find page 154 very helpful. | ||
*** Directly compute the value ranges of unsigned char, short, and unsigned short. See [http://harold.uits.indiana.edu/~jtillots/IntroToProgramming/lecture3/values-char.c values-char.c] as an example | *** Directly compute the value ranges of unsigned char, short, and unsigned short. See [http://harold.uits.indiana.edu/~jtillots/IntroToProgramming/lecture3/values-char.c values-char.c] as an example |
Revision as of 09:31, 25 September 2015
Teacher:Jenett Tillotson
Teacher's email: jtillots ]at[ gmail ]dot[ com
Website: http://harold.uits.indiana.edu/~jtillots/IntroToProgramming
Text: The C Programming Language: 2nd Edition by Kernighan and Ritchie
Buy it on Amazon!
Mailing list: introtoprogramming@bloominglabs.org
Software:
- Linux: Use the gcc package which comes with your Linux distribution
- Mac OSX: Use Clang
- Windows: Use Cygwin Installation Guide
Check the discussion tab for this page to find helpful information for this class. If you need to request an account for the wiki so that you can edit, send an email to contact ]at[ bloominglabs ]dot[ org and make sure to list your preferred username.
Lectures:
- Lecture 3
- Notes
- Code
- Homework:
- Read pages 41 through 54
- Print out the ascii table for ascii values from 0 to 127. Include decimal, octal, hexidecimal, and char values for each value. You may find page 154 very helpful.
- Directly compute the value ranges of unsigned char, short, and unsigned short. See values-char.c as an example
- Extra credit: compute the ranges for int, unsigned int.
- Extra, extra credit: compute the ranges for long and float
- Lecture 2