CSE 100 Study Guide - Quiz Guide: Uninitialized Variable, Semicolon, Compile Time

91 views3 pages

Document Summary

Number of bytes and int variable takes in c++ depends on the machine. Regular int ranges from -2 31 to 2 31 -1. Unsigned int ranges from 0 to 2 31 - 1. If uninitialized variable used, compiler would not complain int harry int lloyd. Bool dumanddumber = (harry + llyod); // allowed in c++ Methods are separately declared outside of the class. There is a semicolon after the class"s closing bracket can initialize non-static variables of the object using a member initializer list. In c++, all variables, both primitive and objects, hold values, not object reference. Which means when one object variable is assigned to another, a copy of the entire object is made. When reference variable defined, the variable is treated exactly as another name as the variable you set to use. When reference variable is modified, the original variable is also modified. Memory can be allocated in two ways.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents