CMPT 127 Lecture Notes - Lecture 1: Newline, Printf Format String, Gnu Compiler Collection

108 views5 pages

Document Summary

That is, all variables have a type that identifies the kind of data they store. Types include integers, floating point numbers, and characters. Every variable has a value which is the data it stores. A variable"s type is specified at its creation. The value of a variable can change, but its type can not. This is fundamentally different to python, where variables could contain different things during their lifetime. Which produces this on stdout: here: 0 3. 141590 + We initialize the variables to a value with the = operator. C does not require that variables be initialized, but it"s a good practice so we will always do so. As in most languages, comments are notes for human readers only, and are ignored by the compiler. /* the multi-line comment style: everything between the slash-star and star-slash is ignored */ // the single-line comment style: the remainder of the line is ignored.

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