- Type
- Final term past paper
- Course
- CS301 Data Structures
- Size
- PDF 9.5 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 4 of 648. Download the file for all 648 pages.
- The answer is that, yes, we don’t want the function to change the parameter, but neither do we want to use up time and memory creating and storing an entire copy of it.
- So, we make the original object available to the called function by using pass-by-reference.
- We also mark it constant so that the function will not alter it, even by mistake.
- Use 2: The const keyword appears at the end of class member’s function signature:
EType& findMin( ) const;
- Such a function cannot change or write to member variables of that class.
- This type of usage often appears in functions that are suppose to read and return member variables.
Related CS301 files
All CS301 files →- CS301 Final Term Past Papers Set 2 by VUBuddy Final term PDF 2.2 MB
- CS301 Final Term Past Papers Set 3 by VUBuddy Final term PDF 3.1 MB
- CS301 Final Term MCQs by VU Topper RM Final term PDF 977 KB
- CS301 Final Term Past Papers File 4 Set 2 by Waqar Siddhu Final term PDF 3.6 MB
- CS301 Highlighted Handouts Set 2 Highlighted PDF 3.7 MB
- CS301 Short Notes Updated by Swera Quiz PDF 1.3 MB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.