CS 161 Lecture Notes - Lecture 10: Type Conversion

34 views2 pages

Document Summary

Cs 161 lecture 10 detailed functions. Homework 3: for testing each function, check if it is true or false. Run the functions, if it works as expected print pass. For testing functions, do not need function headers. Do not need to test for the get int function: substring function. Check that sub in sent: use a loop to check char. Only constants, #includes: every time you create a function, you are creating a local scope. Default arguments: declaring default values have to be in right position, way to make sure that your program won"t fail, only use for call-by-value parameters (more details on week 6 but this is what. If an argument is omitted it can be replaced with a default argument we are currently doing: default arguments are defined the first time the function is declared or defined, must be in rightmost position.

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