CS 24000 Lecture Notes - Lecture 3: C Preprocessor, In C, Octal

17 views2 pages

Document Summary

Constants cannot be changed: also it is common in c to use the c pre-processor to de ne variables, assignment. De ne pi: the element in the left side has to be an i-value . An i-value can be interpreted as an address. In c, an assignment is an expression: this implies that an assignment may appear anywhere an. Integer constants expression is allowed: decimal, octal, hexadecimal, etc, type of constant will be: int, long, or unsigned long, to force the type oat, add f suf x. L to long, u to unsigned int, lu to unsigned long: character constant. Q" enclosed with a single quote: also you can use escape sequences with \octal number or \hex , escape sequences: \r (return), (tab), \" - > single quote, \ double quote, \ back slash: character constants have type int, string contants. Just like java, with rst condition of and being false, it is false.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents