- Type
- Quiz
- Course
- CS201P Introduction to Programming (Practical)
- Size
- PDF 1.3 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, 3 of 10. Download the file for all 10 pages.
Cs201p(lab 5)
If you find any mistake please correct:
Which of the following option gives the [value] stored at the address pointed to by the pointer “ptr”?
*ptr
1) In C++, the precise way to declare a pointer is.
Ans) Int *ptr;
2) What will be the output of the following code?
int main(){ char str[] = " Hello worlld"; cout <<str[4]; return 0;
Answer: o
3) In c++, what is correct syntax for accessing the fifth element of an array?
Related CS201P files
All CS201P files →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.