Assig
Latest uploads at Assig. Looking for notes at Assig? We have lots of notes, study guides and study notes available for your school.
-
2
- 0
-
2
All courses for Assig
-
Assig 2
Latest content Assig
write the definition of a function twice, that receives an integer parameter and returns an integer that is twice the value of that parameter -correct answer_int twice(int input) { return input*2; } write a statement that declares a prototypes for the function add which has 2 int parameters and returns an int -correct answer_int add(int, int); Write the definition of a function isPositive , that receives an integer parameter and returns true if the parameter is positive, and false otherwise. -co...
- Exam (elaborations)
- • 3 pages's •
-
Assig•Assig
Preview 1 out of 3 pages
Getting your document ready...
write the definition of a function twice, that receives an integer parameter and returns an integer that is twice the value of that parameter -correct answer_int twice(int input) { return input*2; } write a statement that declares a prototypes for the function add which has 2 int parameters and returns an int -correct answer_int add(int, int); Write the definition of a function isPositive , that receives an integer parameter and returns true if the parameter is positive, and false otherwise. -co...