COMPTNG 10A Study Guide - Midterm Guide: Scientific Notation, For Loop, Dynamic Array

86 views22 pages
2 Nov 2017
School
Professor

Document Summary

Variable: it is a container that is capable of storing information. Cout<< the content of my_num is ; An int can represent any integer: positive, negative, and 0. / isn"t exactly division, it"s an operator. 3 (because 4 goes into 11 two times with a remainder of 3) Computers are finite. int has a max and min value. The same as int a, b, c; Double is a type that represents real numbers, which means you can include decimals. / does division when used with doubles. / does something like division when used with ints. Library is a collection of code that organized, documented, and made available to others. T he const qualifier makes a variable constant. Const correctness is using const to prevent const variables from being changed inadvertently or unexpectedly. If you don"t initialize your variable, then you will get random numbers. Floating -points types are scientific notation on computers.

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

Related Documents

Related Questions