0% found this document useful (0 votes)
79 views

Assignment

This document contains instructions for a home assignment with questions on classes, constructors, and dynamic memory allocation in C++. It has two parts: Part A contains three questions - creating a box class with default, parameterized and copy constructors; writing a program to multiply matrices using classes; and explaining dynamic constructors and how they improve memory utilization. Part B contains three more questions - writing a program to find palindromes in dynamically allocated strings without library functions; finding the largest number in a dynamically allocated array; and taking input of multiple student names when the number is not known beforehand.

Uploaded by

Amber Agrawal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views

Assignment

This document contains instructions for a home assignment with questions on classes, constructors, and dynamic memory allocation in C++. It has two parts: Part A contains three questions - creating a box class with default, parameterized and copy constructors; writing a program to multiply matrices using classes; and explaining dynamic constructors and how they improve memory utilization. Part B contains three more questions - writing a program to find palindromes in dynamically allocated strings without library functions; finding the largest number in a dynamically allocated array; and taking input of multiple student names when the number is not known beforehand.

Uploaded by

Amber Agrawal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Home Work1 DOA:22/09/2012 MM:30 DOS:16/10/2012

Part A
Q1. Create a class box with its data members width, height and depth. Initialize the data members using default, parameterized, copy constructor and calculate the volume of box. Q2.Write a program that calculates the multiplication of two matrices using the concept of classes. Q3. What do you mean by Dynamic Constructor?How does it help to improve memory utilization ?

Part B
Q4. Write a program to display all palindrome among variable no of inputted string ( for which memory is allocated dynamically ) through keyboard and do it without using any library function directly . Q5.Write a program to find out the largest number from an array of n elements using dynamic memory allocation. Q6. How can you take input of name of several students where no of students is asked at run time ? write a code.
Designed By: Makul Mahajan

You might also like